
Hi All,
I have downloaded 1.4.8 on a new machine running suse 12.1 Kde, and
built it using bjam install option.
Now I have a very simple threading program as follows
#include

Kaz
when I try to compile it using this command g++ -static -I./Built_Boost_1.4.8.0/include -L./Built_Boost_1.4.8.0/lib/ boostThreadTest.cpp -lboost_thread -lpthread -o threadTest I get following error
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: cannot find -lpthread /usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: cannot find -lm /usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: cannot find -lc collect2: ld returned 1 exit status
Odd though it may seem, looks like you haven't installed libc6-dev. Hope this helps, -- Olaf Meeuwissen, LPIC-2 FLOSS Engineer -- AVASYS CORPORATION FSF Associate Member #1962 Help support software freedom http://www.fsf.org/jf?referrer=1962
participants (2)
-
Kaz
-
Olaf Meeuwissen