Boost logo

Boost Users :

Subject: [Boost-users] Linking fails to Boost_system (cannot open shared object file: No such file or directory)
From: stationx (ben_at_[hidden])
Date: 2009-08-24 05:34:59


Hi all,

I have linked my simple program that uses boost.filesystem as follows:

accesstimer: acctime.o bentimer.o
        g++ -L/usr/local/boost/boost_1_39_0/stage/lib -lboost_system-gcc41-mt
-lboost_filesystem-gcc41-mt acctime.o bentimer.o -o accesstimer
        
acctime.o: acctime.cpp bentimer.h
        g++ -I /usr/local/boost/boost_1_39_0 -c acctime.cpp
        
bentimer.o: bentimer.cpp bentimer.h
        g++ -c bentimer.cpp

This compiles fine, but when I execute I get the following error:

./accesstimer: error while loading shared libraries:
libboost_system-gcc41-mt-1_39.so.1.39.0: cannot open shared object file: No
such file or directory

I have looked in the .../stage/lib directory and the file does exist there.
Can anyone see what I've done wrong?
thanks

-- 
View this message in context: http://www.nabble.com/Linking-fails-to-Boost_system-%28cannot-open-shared-object-file%3A-No-such-file-or-directory%29-tp25076124p25076124.html
Sent from the Boost - Users mailing list archive at Nabble.com.



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