Well, try compile this test code: #include <boost/thread/thread.hpp> #include <iostream>
void hello() { std::cout << "Hello world, I'm a thread!"<< std::endl; } int main(int argc, char* argv[]) { boost::thread thrd(&hello); thrd.join(); return 0; } gcc with options "-lpthread", "/usr/local/lib/libboost_thread-mt.so.1.1" (about second argument - i donno why i was not able do it like "-lboost_thread-mt", only with full pass. by why?) while testing boost, i compile this test and it works. 2009/5/13 Marco Peereboom <sl...@peereboom.us> > Much better but does this have threads enabled? > > I get this from the code i am compiling: > /usr/local/include/boost/config/requires_threads.hpp:47:5: #error > "Compiler threading support is not turned on. Please set the correct > command line options for threading: -pthread (Linux), -pthreads > (Solaris) or -mthreads (Mingw32)" >