simple_ls compile error
Just tried to install boost on my laptop and I can't seem to get it to work. (slack 10.1) installed it with bjam "-sTOOLS=gcc" install and it seems to have added itself in /usr/local/include and so on. but when I try to build simple_ls.cpp I only get: todelod@todelod2:~/hemma/my_little_project$ gcc simple_ls.cpp -lboost_filesystem /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld: cannot find -lboost_filesystem collect2: ld returned 1 exit status what am I doing wrong?? (going mad...) /t
Try adding -L/usr/lib (or -L/usr/lib32) to tell gcc where the libraries are. -Eric
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Tord Holmqvist Sent: Monday, May 30, 2005 4:24 AM To: boost-users@lists.boost.org Subject: [Boost-users] simple_ls compile error
Just tried to install boost on my laptop and I can't seem to get it to work. (slack 10.1)
installed it with bjam "-sTOOLS=gcc" install
and it seems to have added itself in /usr/local/include and so on.
but when I try to build simple_ls.cpp I only get:
todelod@todelod2:~/hemma/my_little_project$ gcc simple_ls.cpp -lboost_filesystem
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-s lackware-linux/bin/ld: cannot find -lboost_filesystem collect2: ld returned 1 exit status
what am I doing wrong?? (going mad...)
/t
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/bo> ost-users
On 5/30/05, Tord Holmqvist
todelod@todelod2:~/hemma/my_little_project$ gcc simple_ls.cpp -lboost_filesystem
When you install with a simple "bjam ... install", the libraries will be installed with version-warted names, so you'd want to link with gcc ... -lboost_filesystem-gcc-d-1_33 or some suitable analog. Check the filenames in /usr/local/lib to be sure. -- Caleb Epstein caleb dot epstein at gmail dot com
participants (4)
-
Ben Hutchings
-
Caleb Epstein
-
Eric
-
Tord Holmqvist