当我编译代码时。我添加-pthread.It输出错误。
平台:红帽企业Linux服务器版本6.3(圣地亚哥)
内核:Linux localhost 2.6.32-279.el6.x86_64#1 SMP Wed Jun 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU / Linux
gcc版本:4.4.7 20120313(Red Hat 4.4.7-3)(GCC)
提升:1.48
1)/usr/local/include/boost/thread/detail/platform.hpp:67:9: error: #error "Sorry, no boost threads are available for this platform."
2)/usr/local/include/boost/config/requires_threads.hpp:47:5: error: #error "Compiler threading support is not turned on. Please set the correct command line options for threading: -pthread (Linux), -pthreads (Solaris) or -mthreads (Mingw32)"
如果你有任何好主意,我会非常感激。
谢谢!