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

On 5/30/05, Tord Holmqvist <todelod@dtek.chalmers.se> wrote:
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