Boost logo

Boost :

From: John Maddock (john_maddock_at_[hidden])
Date: 2003-02-16 07:49:50


I've been trying to build the thread test programs from status/Jamfile, but
they all fail to link because they can't find libboost_thread: I think the
problem may be that cygwin gcc can't link to an .so file directly but need
an .a file to be generated as well?

...found 1076 targets...
...updating 24 targets...
gcc-Link-action
../libs/thread/test/bin/test_thread.test/gcc/debug/runtime-link-dynamic/thre
ading-multi/test_thread.exe

LD_LIBRARY_PATH=../libs/thread/build/bin/libboost_thread.so/gcc/debug/runtim
e-link-dynamic/shared-linkable-true/threading-multi
    export LD_LIBRARY_PATH
    g++ -g -o
"../libs/thread/test/bin/test_thread.test/gcc/debug/runtime-link-dynamic/thr
eading-multi/test_thread.exe" -L"../libs/thread/build/bin/libboost_thread.s
o/gcc/debug/runtime-link-dynamic/shared-linkable-true/threading-multi"
"../libs/thread/test/bin/test_thread.test/gcc/debug/runtime-link-dynamic/thr
eading-multi/test_thread.o"
"../libs/test/build/bin/libboost_unit_test_framework.a/gcc/debug/runtime-lin
k-dynamic/threading-multi/libboost_unit_test_framework.a"
"../libs/test/build/bin/libboost_unit_test_framework.a/gcc/debug/runtime-lin
k-dynamic/threading-multi/libboost_unit_test_framework.a"
"../libs/test/build/bin/libboost_unit_test_framework.a/gcc/debug/runtime-lin
k-dynamic/threading-multi/libboost_unit_test_framework.a"
"../libs/test/build/bin/libboost_unit_test_framework.a/gcc/debug/runtime-lin
k-dynamic/threading-multi/libboost_unit_test_framework.a" -lboost_thread

/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld:
cannot find -lboost_thread
collect2: ld returned 1 exit status

and so on....

John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk