Hi,
when i try this locate libboost_filesystem
i get path like bellow
bijay@cmp1:~/boost$ locate libboost_filesystem
/usr/lib/libboost_filesystem-gcc41-mt-1_34_1.so.1.34.1
/usr/lib/libboost_filesystem-gcc42-1_34_1.so.1.34.1
/usr/lib/libboost_filesystem-gcc42-mt-1_34_1.so.1.34.1
/usr/lib/libboost_filesystem-gcc41-1_34_1.so.1.34.1
/var/cache/apt/archives/libboost_filesystem-gcc41-mt-1_34_1.so.1.34.1
/var/cache/apt/archives/libboost_filesystem-gcc42-1_34_1.so.1.34.1
/var/cache/apt/archives/libboost_filesystem-gcc42-mt-1_34_1.so.1.34.1
/var/cache/apt/archives/libboost_filesystem-gcc41-1_34_1.so.1.34.1
bijay@cmp1:~/boost$
then i tried to compile like this
g++ -o second boostThread.cpp -lboost_filesystem -L/usr/lib/libboost_filesystem-gcc41-1_34_1.so.1.34.1
it throws the same error.
/usr/bin/ld: cannot find -lboost_filesystem
collect2: ld returned 1 exit status
Can u plz help me out.
On Fri, Jan 16, 2009 at 1:14 PM, Dmitry V. Krivenok
<krivenok@orangesystem.ru> wrote:
Bijay Panda wrote:
Hi All,
I am trying to run boost1.34.1 in ubuntu 7.10.
Compiling the program like this
g++ -o fst boostThread.cpp -lboost_filesystem
throws error like bellow.
/usr/bin/ld: cannot find -lboost_filesystem
collect2: ld returned 1 exit status
Can any one please tell me how to get rid of this.
g++ can't find shared library libboost_filesystem.so
Provide the path to the library using -L option.
For example
g++ -o fst boostThread.cpp -lboost_filesystem -L/usr/local/boost-1.34.1/lib
If you don't know where library located try the following commands:
sudo updatedb
locate libboost_filesystem.so
On my system this command produces this output:
krivenok@develop2 10:44:55 ~/dev_builds/boost-trunk/boost/date_time $ locate libboost_filesystem.so
/usr/local/old_dev/boost-1.34.1/lib/libboost_filesystem.so
/usr/local/dev/boost-1.37.0/lib/libboost_filesystem.so
/usr/lib/libboost_filesystem.so
krivenok@develop2 10:45:02
--
Thanks & Regards
Bijay Kumar Panda
------------------------------------------------------------------------
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
--
Sincerely yours, Dmitry V. Krivenok
Orange System Company
Saint-Petersburg, Russia
work phone: +7 812 332-32-40
cellular phone: +7 921 576-70-91
e-mail: krivenok@orangesystem.ru
web: http://www.orangesystem.ru
skype: krivenok_dmitry
jabber: krivenok_dmitry@jabber.ru
icq: 242-526-443
--
Thanks & Regards
Bijay Kumar Panda