Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
My coding is need of a "Boost"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
zeonglow
n00b
n00b


Joined: 11 Sep 2006
Posts: 51
Location: /dev/zero

PostPosted: Thu Dec 14, 2006 8:43 pm    Post subject: My coding is need of a "Boost" Reply with quote

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


Code:
emerge boost


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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Dec 14, 2006 9:19 pm    Post subject: Reply with quote

Install dev-libs/boost-1.33.1-r1, to get all its libs.
Back to top
View user's profile Send private message
zeonglow
n00b
n00b


Joined: 11 Sep 2006
Posts: 51
Location: /dev/zero

PostPosted: Thu Dec 14, 2006 10:22 pm    Post subject: Reply with quote

Thanx, I knew it was something silly like that.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum