9 Jul
2005
9 Jul
'05
4:05 p.m.
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.