Linux Boost编译错误

Linux Boost编译错误,linux,boost,Linux,Boost,当我编译代码时。我添加了-pthread.It输出错误 平台:Red Hat Enterprise Linux Server 6.3版(圣地亚哥) 内核:Linux localhost 2.6.32-279.el6.x86_64#1 SMP周三6月13日18:24:36美国东部夏令时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/

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

平台:Red Hat Enterprise Linux Server 6.3版(圣地亚哥)

内核:Linux localhost 2.6.32-279.el6.x86_64#1 SMP周三6月13日18:24:36美国东部夏令时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)"
如果你有什么好主意,我会非常感激


谢谢

您使用的是什么平台?请提供更多信息,如您使用的操作系统、编译器、boost版本以及编译的具体方式。除此之外,错误消息文本实际上非常具有描述性……您是否尝试将-pthread添加到构建中?是的。添加了-pthread.Still错误!不要建立自我激励。使用发行版的软件包管理器(
yum
在您的情况下)从官方回购或一些第三方回购(如果需要更新版本)安装它。