Boost logo

Boost-Build :

From: sijuju2001 (sjulier_at_[hidden])
Date: 2004-04-20 13:50:55


> Finally had some time to look at this... And could not find any
problems. When
> I try an equivalent build of a DLL is does have the extra options to
> generate the import lib. Specifically I ran this:
>
> bjam -sTOOLS=gcc -sUNIX=unix -sJAMUNAME=cygwin -n

Hmm... I tried the following simple test:

test.cpp:

========================

#include "test.hpp"

#include <iostream>

void test()
{
std::cerr << "hello" << std::endl;
}

========================

test.hpp:

========================

void __declspec(dllexport) test();

========================

Jamfile:

========================

dll Test : test.cpp ;

========================

What I get is:

========================

$ bjam -sTOOLS=gcc -sUNIX=unix -sJAMUNAME=cygwin -n
...found 20 targets...
...updating 3 targets...
MkDir1 libTest.dll/gcc/debug/shared-linkable-true

mkdir -p "libTest.dll/gcc/debug/shared-linkable-true"

gcc-C++-action libTest.dll/gcc/debug/shared-linkable-true/test.o

set -e
g++ -c -Wall -ftemplate-depth-100 -g -O0 -fno-inline -fPIC
-o "libTest.dll/gcc/debug/shared-linkable-true/test.o" "test.cpp"

gcc-Link-action libTest.dll/gcc/debug/shared-linkable-true/libTest.dll

LD_LIBRARY_PATH=libTest.dll/gcc/debug/shared-linkable-true:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
g++ -g -fPIC -shared -o
"libTest.dll/gcc/debug/shared-linkable-true/libTest.dll"
"libTest.dll/gcc/debug/shared-linkable-true/test.o"

Chmod1 libTest.dll/gcc/debug/shared-linkable-true/libTest.dll

chmod 755 "libTest.dll/gcc/debug/shared-linkable-true/libTest.dll"

...updated 3 targets...

========================

Alternatively, if I don't set anything on the command line I get:

========================

$ bjam -n
...found 19 targets...
...updating 2 targets...
gcc-C++-action libTest.dll/gcc/debug/test.o

g++ -c -Wall -ftemplate-depth-100 -g -O0 -fno-inline -o
"libTest.dll/gcc/debug/test.o" "test.cpp"

gcc-Link-action libTest.dll/gcc/debug/libTest.dll

LD_LIBRARY_PATH=libTest.dll/gcc/debug:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
g++ -g -shared -o "libTest.dll/gcc/debug/libTest.dll"
"libTest.dll/gcc/debug/test.o"

Chmod1 libTest.dll/gcc/debug/libTest.dll

chmod 755 "libTest.dll/gcc/debug/libTest.dll"

...updated 2 targets...

========================

However, in neither case is the implib stuff fired up.

For reference, I'm using v1 with Boost.Jam Version 3.1.9. OS=CYGWIN.

Cheers,

Simon

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk