使用mingw构建boost c++
build boost c++ with mingw
在构建boost c++库时,是否必须指定cxxflags=-std=c++11
?我实际使用的是mingw 4.8.0(x32,posix,dwarf,与Qt 5.1.0相同)和boost C++1.54.0(所有补丁都在boost下载页面中指定)。
用于构建在我的系统(gcc 4.8.1,x64)上不需要的boost本身。我在Windows上使用的命令提示符(不是msys):
bootstrap mingw
bjam toolset=gcc link=shared variant=debug,release
或者,您可以使用b2(参考)。你必须在你的包含路径中有提升,尽管
export CFLAGS="-I/path_to_boost/boost_1_54_0"
export CXXFLAGS="-I/path_to_boost/boost_1_54_0"
对于编译应该使用C++11特性的程序,您需要它;独立于是否使用升压。
相关文章:
- 理解boost::asio-async_read在无需读取内容时的行为
- boost::进程间消息队列引发错误
- 如何运行位于boost/libs/python/example/tutorial目录中的hello.cpp和Jamfil
- cmake如何在fedora工作站中找到boost静态库包
- CMake项目Boost库错误:Boost/config/compiler/gcc.hpp:165:10:致命错误:cs
- Boost Graph Library,修复节点大小
- 什么是"#include <boost/functional/hash.hpp> "?
- 基于boost的程序的静态链接——zlib问题
- C++:如何在CLion IDE中安装Boost
- C++Boost Asio Pool线程,带有lambda函数和传递引用变量
- 如何在boost beast http请求中设置http头
- Boost Spirit,获取迭代器内部语义动作
- boost::asio::steady_timer()与sleep()我应该使用哪一个
- boost::asio如何生成多个协同程序,然后加入它们
- 当我尝试使用 sstream 和分面将 Boost Time_duration转换为字符串时,我没有得到所需的格式
- Visual Studio(或任何其他工具)能否将地址解释为调用堆栈(boost上下文)的开头
- 如何使用boost::具有嵌套结构和最小代码更改的序列化
- 使用Boost Interprocess创建托管共享内存需要很长时间
- Boost::posix_time::ptime舍入到给定的分钟数
- boost xml parsingl将xml的路径作为变量发送