Boost logo

Boost Users :

From: Annamalai Gurusami (annamalai.gurusami_at_[hidden])
Date: 2008-08-30 13:01:28


On Sat, Aug 30, 2008 at 9:34 AM, Moji <moji.esi_at_[hidden]> wrote:

[removed some content]

> 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

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