Visual C++ nuget:未找到包含文件
Visual C++ nuget: boost include files not found
我对Visual Studio很陌生,因为我通常使用linux。
我通过 nuget 安装了 boost 包,我可以看到所有头文件都正确安装到我的解决方案的"包"文件夹中。
但是,每当我尝试包含提升标头时,都会收到错误,例如:
Cannot open include file: 'boost/type_traits/has_equal_to.hpp': No such file or directory
同时,我安装了SFML库,这些库运行良好。
我还注意到,在我的项目属性中,列出了"引用的包"部分 SFML 库,但没有列出 boost 库。这很奇怪,因为当我安装软件包时,我确实单击了为其安装软件包的项目的复选框。
我努力寻找如何添加包引用,但惨遭失败。我可能只是在这里很瘦...
我正在使用Visual Sudio 14(2015)Update 3社区版。
您需要添加以下路径:
$(SolutionDir)packagesboost.w.x.y.zlibnativeincludeboost
在 C/C++> 常规>配置属性中>其他包含目录
相关文章:
- vcruntime.h 从 Windows 包含文件夹中丢失?
- 禁止显示有关包含文件中 #pragma 包的警告
- 无法打开包含文件:在 vs2017 上'QtWidgets/qtwidgetsglobal.h'
- 包含文件 <sched_yield.h>在我的 RHEL 5 上找不到
- 尝试使用 MSVC 从源代码构建 qt 创建器:无法打开包含文件:"stddef.h":没有这样的文件或目录
- 无法打开包含文件'Graphics.hpp'没有这样的文件或目录,Visual Studio的其他包含不起作用
- 为什么 C++ 编译器在"c:program filesgnu emacsinclude"中查找包含文件?
- 包含文件中的 Typdef "未在此范围内声明"
- 错误: C1083: 无法打开包含文件:"boost/asio.hpp": 没有此类文件或目录
- SFML c ++ 当包含文件内游戏中发生事件时,如何使用铃声函数为我的游戏创建声音类?
- 在Windows上设置CMake和vcpkg时出错"无法打开包含文件"
- 致命错误 C1083:无法打开包含文件:"GL/glew.h":没有此类文件或目录
- Qt自动生成的.rc文件无法打开包含文件'windows.h'
- Visual Studio 停止识别任何包含文件
- 无法打开包含文件:"签证.h"
- 如何检查每个头文件是否包含必需的包含文件?
- Protobuf:无法在 message.pb.h 文件中打开包含文件 common.h
- extern 关键字在包含文件头文件C++
- 错误:无法打开包含文件:"MQTTAsync.h":没有此类文件或目录
- #include "date.h" 创建错误 E1696 无法打开源文件"date.h",也无法打开包含文件:没有这样的文件或目录