2

当我编译代码时。我添加了-pthread。它输出错误。

平台:Red Hat Enterprise Linux Server 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(红帽 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)"

如果您有任何好的想法,我将不胜感激。

谢谢!

4

0 回答 0