|
Boost Users : |
Subject: Re: [Boost-users] [Ubuntu 8.04] Linking Problem in Eclipse with Boost 1.41 Libraries
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-11-27 02:32:28
Brooks Garrison wrote:
> Volodya,
>
> Thanks for the quick response :)
>
>> Generally, you don't have to specify that you are using shared libraries.
>> In fact, on modern Linux, every library is shared. I recommend you
>> add /usr/local/boost_1_41_0/prefix/lib to LD_LIBRARY_PATH environment
>> variable.
>
> I've seen this workaround mentioned by a few people, but a lot of the
> things I've read say that you should -never- change the
> LD_LIBRARY_PATH environment variable, so I'd rather just be able to
> specify a link option or something else to get it to link properly.
This is not a workaround. This is the standard way to make shared libraries installed
into a custom location be available at runtime. I don't know which things you've
read -- maybe they talk about more specific cases.
Another alternative if to pass -R /usr/local/boost_1_41_0/prefix/lib option
when compiling your library. You won't have to set LD_LIBRARY_PATH in that
case, but passing the option every time can quickly become cumbersome.
- Volodya
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