[threads] Compiling boost.threads on Linux

Hey everybody, I'm a newbie on Boost Libraies, I'm starting with the thread library. I'm using Ubuntu and a install it using apt-get, the headers are in /usr/include/boost/ but when I use g++ to compile my test codes an error message is returned: undefined reference to methods of the library classes. I know this errors are link errors, what option I must pass to g++? Thanks for everyone that answer my ask. Hugo Vinícius __________________________________________________ Fale com seus amigos de graça com o novo Yahoo! Messenger http://br.messenger.yahoo.com/

On 1/3/07, Hugo Vinicius Alves Soares
Hey everybody,
I'm a newbie on Boost Libraies, I'm starting with the thread library. I'm using Ubuntu and a install it using apt-get, the headers are in /usr/include/boost/ but when I use g++ to compile my test codes an error message is returned: undefined reference to methods of the library classes. I know this errors are link errors, what option I must pass to g++? Thanks for everyone that answer my ask.
Try: -lboost_thread Richard
Hugo Vinícius
__________________________________________________ Fale com seus amigos de graça com o novo Yahoo! Messenger http://br.messenger.yahoo.com/ _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Hugo Vinicius Alves Soares
-
Richard Dingwall