【发布时间】:2015-06-26 15:28:41
【问题描述】:
我在 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 也许这不会影响任何事情。
【问题讨论】: