Boost logo

Boost Users :

Subject: Re: [Boost-users] error while loading shared libraries
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-04-22 13:27:40


AMDG

ChristinaDRS wrote:
> now when I try to compile main.cpp like this:
>
> $ g++ -I ~/boost_1_38_0/ -I. main.cpp -o main -L/usr/local/lib/ -L. -ltest
> -lboost_thread-gcc41-
>
> now when I run main:
>
> $ ./main
> ./main: error while loading shared libraries:
> libboost_thread-gcc41-mt-1_38.so.1.38.0: cannot open shared object file: No
> such file or directory
>
>
> I get that error.
>
> Can anyone explain why?
>

Try adding /usr/local/lib to LD_LIBRARY_PATH

In Christ,
Steven Watanabe


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