c++ - Boost librairies not found but compilation is ok -


i trying use filesystem boost in c++

it seems compilation ok when using

"c++ -c analyse.c -o analyse.o -g -w -wall -l/usr/local/lib -lboost_filesystem -lboost_system"

however have following error when trying execute code :

"error while loading shared libraries: libboost_filesystem.so.1.54.0: cannot open shared object file: no such file or directory", find / -iname "libboost_system.so.1.54.0

i had issues install boost (i first installed 1.49 , after 1.54) wondering if there conflict between 2 version ?

p.s : btw "find / -iname "libboost_system.so.1.54.0" gave me following

/usr/include/boost/boost_1_54_0/bin.v2/libs/system/build/gcc-4.7/release/threading-multi/libboost_system.so.1.54.0  /usr/local/lib/libboost_system.so.1.54.0 

try add directory before execution. example: ld_library_path="/usr/local/lib/" ./analyse.o


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -