树莓派 GCC 4.8.2 构建提升 1.56 原子错误
Raspberry PI GCC 4.8.2 build boost 1.56 atomic error
我试图在我的树莓派上用 C++11 构建 1.56 提升库。大多数库都是正确的构建,但 boost 原子会产生以下错误:
构建提升C++库。
Component configuration: - atomic : building - chrono : not building - container : not building - context : not building - coroutine : not building - date_time : not building - exception : not building - filesystem : not building - graph : not building - graph_parallel : not building - iostreams : not building - locale : not building - log : not building - math : not building - mpi : not building - program_options : not building - python : not building - random : not building - regex : not building - serialization : not building - signals : not building - system : not building - test : not building - thread : not building - timer : not building - wave : not building ...found 129 targets... ...updating 8 targets... gcc.compile.c++ bin.v2/libs/atomic/build/gcc-4.8/release/threading-multi/lockpool.o g++: error: unrecognized command line option ‘-std=cxx11’ "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -std=cxx11 -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_DYN_LINK=1 -DBOOST_ATOMIC_SOURCE -DNDEBUG -I"." -c -o "bin.v2/libs/atomic/build/gcc-4.8/release/threading-multi/lockpool.o"
"libs/atomic/src/lockpool.cpp"
...failed gcc.compile.c++ bin.v2/libs/atomic/build/gcc-4.8/release/threading-multi/lockpool.o... ...skipped <pbin.v2/libs/atomic/build/gcc-4.8/release/threading-multi>libboost_atomic.so.1.56.0
因为缺乏 锁池... ...跳过libboost_atomic.so.1.56.0,因为缺少libboost_atomic.so.1.56.0... ...跳过libboost_atomic.so,因为缺少libboost_atomic.so.1.56.0... gcc.compile.c++ bin.v2/libs/atomic/build/gcc-4.8/release/link-static/threading-multi/lockpool.o g++:错误:无法识别的命令行选项"-std=cxx11"
"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -std=cxx11 -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_SOURCE -DBOOST_ATOMIC_STATIC_LINK=1 -DNDEBUG -I"." -c -o "bin.v2/libs/atomic/build/gcc-4.8/release/link-static/threading-multi/lockpool.o"
"libs/atomic/src/lockpool.cpp"
...failed gcc.compile.c++ bin.v2/libs/atomic/build/gcc-4.8/release/link-static/threading-multi/lockpool.o... ...skipped <pbin.v2/libs/atomic/build/gcc-4.8/release/link-static/threading-multi>libboost_atomic.a(clean)
因为缺乏 锁池... ...跳过libboost_atomic.a 因为缺乏 锁池... ...跳过libboost_atomic.a,因为缺乏libboost_atomic.a... ...更新 2 个目标失败... ...跳过了6个目标...
我做了:
./bootstrap --with-libraries=atomic
./b2 cxxflags="-std=cxx11"
有人知道我能做什么吗?
正确的标志是 -std=c++11
,而不是 -std=cxx11
。只需使用以下命令运行命令:
./b2 cxxflags="-std=c++11"
这个错误是已知的,并在那里修复:
https://svn.boost.org/trac/boost/ticket/10446
https://github.com/boostorg/atomic/commit/415db7054723291042e4ff1ffa8fdd5bc8b07163
- libssh 的函数在构建 libssh 时无法在 Qt 和 cmake 错误中找到
- VSCode-有一个红色下划线,但程序构建和运行正确,并且出现配音错误
- Clion显示错误,但可以使用Cmake成功构建代码
- Agora.io 虚幻引擎插件构建错误
- VS 2015 链接错误 无法构建依赖于 libcurl 的项目
- 如何构建 SOCI 库而没有错误?
- 尝试将 boost::stacktrace 添加到 CMake 项目时出现构建错误
- Arch Linux.AUR 包 mysql 不能用 makepkg 构建.错误:构建 () 中出现故障
- GCC:随机构建导致执行期间分段错误
- 组件上的虚幻引擎可蓝图UFUNCTION会导致构建错误
- 构建失败错误:无法使用 qibuild 构建C++ SDK Helloworld
- 调试模板时出现问题.专门针对 Linux GCC 7、GCC 6、GCC 5、GCC 4.9 错误构建失败:模板参数 1
- MINGW的错误构建提升
- 从Canfestival错误构建CanOpen的示例
- 链接器错误构建GDAL VS2017
- Netbeans 7.4 C++简单的 hello world 错误构建失败尝试了 Google 搜索结果前 2 页上的
- 链接器错误构建 fibonnacci 示例与 boost::coroutine2 与 Boost 1.60 使用动态链接
- 使用CMake错误构建Thor SFML扩展
- 链接器错误构建GDAL
- 错误构建简单的MongoDB c++客户端示例