错误:BOOST DISABLE THREADS [英] error : BOOST DISABLE THREADS
问题描述
我有一些问题,我Boost库。读音字使用FreeBSD和使用港口安装了我的提振。升压的版本是:1.45我用G ++作为47的编译器。此外,我从来没有在那里定义BOOST DISABLE主题:/usr/local/include/boost/config/user.hpp。也正是我的错误是:
i have some problem with my boost library. i m using freebsd and installed my boost using ports. Boost version is : 1.45 and i use g++47 as compiler. Also i have never defined BOOST DISABLE THREADS at there : /usr/local/include/boost/config/user.hpp .Also exactly my error is :
/usr/local/include/boost/config/requires_threads.hpp:29:4: error: #error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"
明确,但在那里?而我的编译命令;
explicitly but where ?? And my compile command;
g++47 -O3 -Wall -std=c++0x -I. -Iinclude -I../include -I/usr/local/include -c -o Application.o src/Application.cpp
感谢
推荐答案
实验GCC 4.7版将禁用Boost.Threads。参见:<一href=\"https://svn.boost.org/trac/boost/ticket/6165\">https://svn.boost.org/trac/boost/ticket/6165
The experimental GCC version 4.7 disables Boost.Threads. See: https://svn.boost.org/trac/boost/ticket/6165
编辑:应当指出,由于海湾合作委员会4.7,发行版本和Boost高于1.48(Boost_1_48_0仍然不工作),螺纹再次工作
It should be noted that as of the release version of GCC 4.7, and Boost higher than 1.48 (Boost_1_48_0 is still not working), threads works again.
这篇关于错误:BOOST DISABLE THREADS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!