|
Boost : |
From: John Maddock (John_Maddock_at_[hidden])
Date: 2002-03-17 07:34:51
> I'm now linking my library (.a file) and libboost_thread.a into an
> executable. Everything compiles but the linker isn't seeing pthread
> stuff. Not suprising since I don't have a clue how to tell gcc to
> link the MT runtime stuff. Can someone spoil me with the answer to
> that one?
Use -pthread on the command line, both for compiling and linking, you may
need -lrt as well on some linuxes.
John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk