【问题标题】:MinGW lost boost filesMinGW 丢失了 boost 文件
【发布时间】:2018-10-13 18:31:03
【问题描述】:

我已经在 windows 下将 boost-1.68.0 安装到“C:\boost”中。当我尝试使用 boost/geometry.hpp 编译简单程序时,mingw 抛出错误:

fatal error: boost/geometry.hpp: No such file or directory

我试过了:

g++ example.cpp -o example.exe -I"C:\boost\include\boost-1_68" -L"C:\boost\lib"

【问题讨论】:

    标签: windows boost mingw boost-geometry


    【解决方案1】:

    尽管在安装过程中没有显示任何错误,但似乎没有正确完成 boost 的安装。 "C:\boost\include" 目录中没有 *.hpp 文件,只有空文件夹的结构。 问题已通过从下载的安装包中手动使用 *.hpp 处理相同的 boost 文件夹来解决。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-12-31
      • 1970-01-01
      • 2011-05-18
      • 2012-10-06
      • 2021-09-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多