Boost Users :
From: John Maddock (john_at_[hidden])
Date: 2005-07-09 11:05:55
>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
>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.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net