Visual C++ nuget:未找到包含文件

Visual C++ nuget: boost include files not found

本文关键字:包含 文件 C++ nuget Visual      更新时间:2023-10-16

我对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++> 常规>配置属性中>其他包含目录

相关文章: