Boost Libraries and Visual Studio 2013
Boost Libraries and Visual Studio 2013
我已经通过命令行(命令提示符)使用MSVC工具集安装了boost。
现在,我想知道我的项目属性中应该包括哪些目录。
当我在我的项目中添加以下行时:
#include <filesystemfstream.hpp>
它抛出以下错误:
1>c:boostboost_1_56_0boostfilesystemfstream.hpp(15): fatal error C1083:
Cannot open include file: 'boost/config.hpp': No such file or directory
我已经为库的项目属性目录添加了以下内容:
C:boostboost_1_56_0boost
C:boostboost_1_56_0stagelib
这就是我添加上述路径的地方:
(Project->Properties->VC++ Directories->Library Directories
不要将boost
子目录添加到搜索路径中;添加父
C:boostboost_1_56_0
并在包含标头时指定boost
目录
#include <boost/filesystem/fstream.hpp> // Better to use / not for portability
Boost标头彼此包含类似的内容(路径中有boost/
),因此现在也可以找到它们。
相关文章:
- 将"libpqxx"与Visual Studio 2013链接/安装,以便与PostgrSQL建立C++连接
- Visual Studio 2013,错误 MSB8020:找不到 Visual Studio 2010 的生成工具
- 为什么在Visual Studio 2013上的std::this_thread::sleep_for上死锁
- 性能报告 (.vspx) 在 Visual Studio 2013 中未打开(显示损坏)
- 在 Visual Studio 2013 中使用零大小数组C++
- Visual Studio 2013 标头包含失败
- Visual studio 2013 和 g++ 7.1 中将 int 和 long 类型相乘时的 c++ 差异行为
- 在Visual Studio 2013中编译的STL列表代码在Visual Studio 2019中给出了错误.想知道原
- 错误 LNK2019: 未解析的外部符号 Visual Studio 2013 与 openCV
- cv:内存位置的异常 - 运行 openCV 代码 Visual Studio 2013 & Visual Studio 2017 - Windows 7
- 模块计算机类型和目标计算机类型 Visual Studio 2013
- 如何在Visual Studio 2013 Ultimate Edition中包含某个单词的每一行中插入断点
- 具有显式参数和大小的可变参数模板.Visual Studio 2013.
- 使用 Visual Studio 2013 编译 GDCM dlls 2.8.4 for Windows
- 基本字符串操作有问题 [c++, Visual Studio 2013]
- Visual Studio 2013中可能的C/C 编译器错误
- 在Visual Studio 2013上.Win32 应用和 CLR 应用
- 我正在尝试在Visual Studio 2013中编写我的第一个"Hello World"代码。为什么我会收到"IntelliSense: no operator message"和"error C2
- DLL不导出Visual Studio 2013 VB代码中的字符串
- 我们如何使用Visual Studio 2013访问C 中的更改编号