On Sat, Aug 30, 2008 at 9:34 AM, Moji
then I also link the boost_system:
g++ timer3.cpp -lboost_thread -lboost_system
but g++ can not find the libboost_system althoght we have these file in the /usr/lib folder:
/usr/lib/libboost_system-gcc42-mt-1_35.so /usr/lib/libboost_system-gcc42-mt-1_35.so.1.35.0
and these files in the /usr/local/lib :
/usr/local/lib/libboost_system-gcc42-mt-1_35.so /usr/local/lib/libboost_system-gcc42-mt-1_35.so.1.35.0 /usr/local/lib/libboost_system-gcc42-mt.so
What you give "-lboost_system", the linker would search for libboost_system.so file. Is there such a file? It most probably would be a soft link to one of the shared library that you mentioned above. Also try providing the path to the shared library will the -L option. $ ls /usr/local/lib/libboost_system.so /usr/lib/libboost_system.so # one of them should be there $ g++ timer3.cpp -L/usr/local/lib -L/usr/lib -lboost_thread -lboost_system Hope that helps. Rgds, anna -- Abusive Language on Internet http://missingrainbow.blogspot.com/2008/08/abusive-language-on-internet.html