visual-c++ - fatal error C1083 : Cannot open include file: 'boost/regex.hpp' : No such file or directory

标签 visual-c++ visual-studio-2010

使用 regex.hpp 构建代码时出现以下错误 我使用的是 VS2010 VC++

fatal error C1083:无法打开包含文件:'boost/regex.hpp':没有这样的文件或目录

boost\boost_regex-vc71-mt-1_33_1.lib 文件在这里..这是正确的吗?

最佳答案

听起来您的包含设置没有 boost 安装父目录的路径。

查看这些说明:http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html#build-from-the-visual-studio-ide

并特别注意包含目录设置。

关于visual-c++ - fatal error C1083 : Cannot open include file: 'boost/regex.hpp' : No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3163935/

相关文章:

c++ - 在循环中用作 "const &"函数参数的临时对象的编译器优化?

c++ - 为什么我们需要在 C++ 中导出一个类?

c++ - 调试断言失败

visual-studio - 在 Visual Studio 中从类生成接口(interface)时如何复制注释?

vb.net - 为什么代码隐藏文件在 VB.NET Web 应用程序项目中不可见?

c++ - 在 VIsual Studio 错误 NewFolder 中运行 MFC C++ 代码不是有效的工作目录

c# - 如何使 C# 源文件由 Visual Studio 处理,但不在程序集中编译?

c++ - Visual C++ 中 DLL 的 DLL 导出和接口(interface)

.net - 警告 C4341 - 'XX' : signed value is out of range for enum constant

c# - 用 ">"替换列选择会删除代码行