threading support error
I'm trying to compile a boost.thread example, on gcc 3.3.5. I get the folowing error: /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)" In file included from /usr/local/include/boost/thread/thread.hpp:19, Is there a way to fix it? -- Regards, Groleo! # touch universe # chmod +x universe # ./universe
I'm trying to compile a boost.thread example, on gcc 3.3.5. I get the folowing error:
/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)" In file included from /usr/local/include/boost/thread/thread.hpp:19,
Is there a way to fix it?
Sure follow the instructions and use whatever compiler option your gcc version/platform needs to make it thread safe. John.
participants (2)
-
Groleo Marius
-
John Maddock