|
Boost Users : |
Subject: Re: [Boost-users] Static linkage in shared object
From: John Maddock (john_at_[hidden])
Date: 2008-09-11 11:51:53
Graham Bull wrote:
>> It compiles fine, but when I use it from Java I always getting an
>> exception stating that libboost_thread-gcc-mt-1_33_1.so.1.33.1 cannot
>> be found - but that's intentional, I haven't put /usr/local/lib in
>> LD_LIBRARY_PATH because I don't want to dynamically link.
Right: looks like you've linked to the usual Boost.Thread shared library,
probably the easiest solution to force linkage to the static version is to
explicitly add the name of the static Boost.Thread lib on the command line
rather than the usual -lboost_thread.
HTH, John.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net