Am实际上是Boost库的新手,目前正在Solaris-10平台上构建boost库,下面的命令用于构建boost:
./bootstrap.sh --与-工具集=sun--与-库=原子、线程、正则表达式 ./b2 variant=release地址-model=64运行时-link=共享cxxflags="-std=c++11 -m64 -xarch=sparc -mt“linkflags="-std=c++11 -m64 -xarch=sparc -mt”threading=multi toolset=sun stage
在构建boost库时,唯一的问题是:
没有启用无锁功能。有谁能帮助我理解我所缺少的东西,以及我需要在命令行中添加什么来启用无查找功能?
Boost Library版本- 1.61编译器- SolarisStudio-12.4 CC编译器O.S架构=64位 在RedHatLinux-6上,boost与g++编译器一起构建得很好,没有通过命令行设置任何附加标志,它还显示无锁boost::atomic_flag:“**yes(缓存)”**
发布于 2016-10-12 07:51:13
您只需要在所有UNIX机器上安装C++11编译器,因为Boost库主要使用C++11库API调用。
https://stackoverflow.com/questions/38716884
复制相似问题