为什么brew没有正确编译boost
Why is brew not compiling boost correctly?
我在Mac OSX Yosemite 10.10.3上,brew install boost没有正确编译boost。例如,运行
g++ -I/usr/local/Cellar/include -x c++ -E /dev/null -include boost/version.hpp && echo SUCCESS:
给我
# 1 "/dev/null"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 326 "<built-in>" 3
# 1 "<command line>" 1
In file included from <built-in>:326:
<command line>:1:10: fatal error: 'boost/version.hpp' file not found
#include "boost/version.hpp"
^
# 1 "<built-in>" 2
# 1 "/dev/null" 2
我注意到,通过Brew安装获得的目录结构与此处列出的目录结构有很大不同:http://www.boost.org/doc/libs/1_35_0/more/getting_started/unix-variants.html也许这不会影响任何事情。
命令应该改为
g++ -I/usr/local/include -x c++ -E /dev/null -include boost/version.hpp && echo SUCCESS
相关文章:
- 编译 Boost 时在 OS X 上的"ld:未知选项:-soname"
- 用STD = C 11或其他标准编译Boost,例如Ash C 14
- 编译Boost ASIO示例时出现错误
- 使用Cygwin win32_api.hpp编译Boost Log中的错误
- 无法编译 boost::asio::basic_datagram_socket<boost::asio::ip::udp>::basic_datagram_socket()
- 编译boost.spirit.karma示例,customize_embedded_container.cpp失败
- 在 solaris cc v5.8 上编译 Boost
- 在Windows上使用zlib编译boost 1.62 / 1.63
- 错误编译Boost.log
- 试图编译Boost和openSSL时(使用WebSocket 或CPPRESTSDK)进行编译错误
- 在Windows上编译Boost :: ASIO示例
- 我可以编译boost.python模块而没有BJAM
- 在spirit parser Action中,在上下文参数上编译boost :: bind(成员函数)上的错误
- 在 Linux 上编译 boost asio 时出现链接错误
- 在目标平台上编译 Boost 自己是否有意义
- 编译 Boost.Bind时出错
- 在OS X上使用clang编译boost regex时发生链接错误
- 编译boost时"threading=multi"究竟做了什么
- 编译 boost 文件系统的教程文件时遇到问题
- 从Linux到Windows交叉编译boost 1.57的问题