View previous topic :: View next topic |
Author |
Message |
zeonglow n00b
Joined: 11 Sep 2006 Posts: 51 Location: /dev/zero
|
Posted: Thu Dec 14, 2006 8:43 pm Post subject: My coding is need of a "Boost" |
|
|
I'm trying to get a simple example from the C++ Boost library to work.
This one: http://www.ddj.com/dept/cpp/184401518?pgno=2
It's also on wikipedia but I can't get it to work.
I added both threads and threadsonly to package.use
then
but when I run this:
Code: | g++ -lboost_thread-thread thread_demo.cpp -o thread_demo |
I get this:
Code: |
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -l/usr/lib/boost_thread-thread
collect2: ld returned 1 exit status |
I have tried several variations of the -l even libboost_theads-mt which is the name of the .so file, same result
when I type
g++ -print-search-dirs
I don't get anything which mentions boost at all, I have spent ages searching google for assitance, but haven't found anything of use.
I'm also aware the gcc is faily important to a Gentoo system and not quite ready to "play" with the settings just yet !!
I almost starting to belive the whole Boost library things is just a cruel joke, but that's just paranoia, (i hope)
Can anyone help?
Thanks in advance.
p.s. I got a boost::sprit example to work, I feel so much better |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Thu Dec 14, 2006 9:19 pm Post subject: |
|
|
Install dev-libs/boost-1.33.1-r1, to get all its libs. |
|
Back to top |
|
|
zeonglow n00b
Joined: 11 Sep 2006 Posts: 51 Location: /dev/zero
|
Posted: Thu Dec 14, 2006 10:22 pm Post subject: |
|
|
Thanx, I knew it was something silly like that. |
|
Back to top |
|
|
|