简体   繁体   English

MinGW丢失了boost文件

[英]MinGW lost boost files

I've installed boost-1.68.0 under windows into "C:\\boost". 我已将Windows下的boost-1.68.0安装到“ C:\\ boost”中。 When I try to compile simple program using boost/geometry.hpp, mingw throws an error: 当我尝试使用boost / geometry.hpp编译简单程序时,mingw抛出错误:

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

I've tried this: 我已经试过了:

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

It appeared that installation of boost was not completed properly despite of the fact that no errors was showed during the process. 尽管在此过程中未显示任何错误,但看来Boost的安装未正确完成。 There were no *.hpp files in "C:\\boost\\include" directory, just the structure of empty folders. “ C:\\ boost \\ include”目录中没有* .hpp文件,只有空文件夹的结构。 The problem was solved by manually coping same boost folder with *.hpp from downloaded install package. 通过使用下载的安装包中的* .hpp手动处理同一个boost文件夹来解决该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM