【问题标题】:Why is brew not compiling boost correctly?为什么 brew 不能正确编译 boost?
【发布时间】: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 也许这不会影响任何事情。

【问题讨论】:

    标签: c++ macos boost homebrew


    【解决方案1】:

    命令应该改为

    g++ -I/usr/local/include -x c++ -E /dev/null -include boost/version.hpp && echo SUCCESS
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-07-02
      • 2022-11-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-25
      • 1970-01-01
      • 2011-10-15
      相关资源
      最近更新 更多