c++ - 在 Eclipse 中设置 boost 库路径时出错
问题描述
在Eclipse中设置boost库的路径后遇到了问题。我收到如下错误:
No such file or directory
compilation terminated.
这是我的日志:
15:32:06 **** Rebuild of configuration Debug for project Demo ****
Info: Internal Builder is used for build
g++ "-IC:\\boost\\boost_1_66_0" "-includeC:\\boost_1_66_0" -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\Demo.o" "..\\src\\Demo.cpp"
cc1plus: fatal error: C:\boost_1_66_0: No such file or directory
compilation terminated.
15:32:06 Build Finished. 0 errors, 0 warnings. (took 147ms)
解决方案
看起来您的路径未与 -l 标志和 -include 标志对齐。它应该是“-includeC:\boost\boost_1_66_0”,或者是 boost 根目录的正确路径。
有关更多信息,请参阅此boost 文档。
推荐阅读
- client - 将 Mikrotik 设置为 OpenVPN 客户端时对等体断开连接
- python-3.x - 'float' 类型的对象在字符串对象上没有 len()
- mysql - 如何在没有 Web 服务的情况下将 Xamarin.Forms 应用程序连接到 mysql 数据库
- c++ - 为什么即使看起来很合适,它也会显示错误?
- javascript - 如何防止 Travis-CI 生成 yarn.lock 或如何忽略 Lerna 发布以忽略工作树中未提交的更改
- c# - 如何创建开放泛型类的列表
? - php - 我如何在 php htaccess 文件中重定向这个 url
- python - Docker 在 Dockerfile 中编译 python 文件
- docker - 从派生的 docker 映像在特定 /home 文件夹中创建文件夹不起作用
- javascript - 当您可以只做 + 时, += 签署此代码的目的是什么?