Re: [Boost-users] Issue linking to static boost thread library (Newbie)

-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Forever Kid Sent: Monday, December 11, 2006 12:54 AM To: boost-users@lists.boost.org Subject: [Boost-users] Issue linking to static boost thread library (Newbie)
I am having a little trouble getting boost to load the static thread library.
For some reason it wants to load the dynamic library instead of the static boost_thread library.
[Nat] I don't know if this is still applicable, but have you tried BOOST_THREAD_USE_LIB? This is the most pertinent message I've turned up: http://archives.free.net.ph/message/20040629.155158.2084b216.en.html

Thanks for the reply, I changed the compiler/linker arguments to this: g++ -DBOOST_THREAD_USE_LIB -I/home/quirk/dev/libraries/boost_1_33_1/ -O0 -g3 -Wall -c -fmessage-length=0 -pthread -MMD -MP -MF"main.d" -MT"main.d" -o"main.o" "../main.cpp" Finished building: ../main.cpp g++ -L/home/quirk/dev/libraries/boost_1_33_1/stage/lib -o"ManagedMakeProject" ./main.o -lboost_thread-gcc-mt-d-1_33_1 Finished building target: ManagedMakeProject ...and still got the same error message: "error while loading shared libraries: libboost_thread-gcc-mt-d-1_33_1.so.1.33.1: cannot open shared object file: No such file or directory" There must be some compiler/linker arguments that I am missing to get this to statically link. Thanks, Graham --- Nat Goodspeed <ngoodspeed@solidworks.com> wrote:
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Forever Kid Sent: Monday, December 11, 2006 12:54 AM To: boost-users@lists.boost.org Subject: [Boost-users] Issue linking to static boost thread library (Newbie)
I am having a little trouble getting boost to load the static thread library.
For some reason it wants to load the dynamic library instead of the static boost_thread library.
[Nat] I don't know if this is still applicable, but have you tried BOOST_THREAD_USE_LIB? This is the most pertinent message I've turned up:
http://archives.free.net.ph/message/20040629.155158.2084b216.en.html
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
____________________________________________________________________________________ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com
participants (2)
-
Forever Kid
-
Nat Goodspeed