无法 link 提升文件系统
Could not link boost file system
我使用 Visual Studio 2012 Update 4。我无法构建我的项目。
我已经下载了 boost 存档,并将其解压缩到 C:\boost
。
打开 Developer Command Line for VS2012
并在 boost 目录中执行 bootstrap.bat
和 bjam.exe
(大约需要 5 分钟)。
在我的项目中,我已将 C:\boost
添加到其他包含目录,并将 C:\boost\stage\lib
添加到其他库目录(在构建设置中)。
如果我在我的代码中写:
#include <boost\filesystem.hpp>
我收到链接错误:
Error 1 error LNK1104: cannot open file 'libboost_filesystem-vc110-mt-gd-1_58.lib'
项目类型是:Win32 应用程序(CLR 支持)。
其他提升 headers 似乎在其他项目上效果很好。
关于链接提升我缺少什么,我应该学习什么?
通过 运行 c:\boost
中的此命令修复了此问题(感谢 @marom):
b2.exe --with-filesystem --toolset=msvc-11.0 --build-type=complete stage
我使用 Visual Studio 2012 Update 4。我无法构建我的项目。
我已经下载了 boost 存档,并将其解压缩到 C:\boost
。
打开 Developer Command Line for VS2012
并在 boost 目录中执行 bootstrap.bat
和 bjam.exe
(大约需要 5 分钟)。
在我的项目中,我已将 C:\boost
添加到其他包含目录,并将 C:\boost\stage\lib
添加到其他库目录(在构建设置中)。
如果我在我的代码中写:
#include <boost\filesystem.hpp>
我收到链接错误:
Error 1 error LNK1104: cannot open file 'libboost_filesystem-vc110-mt-gd-1_58.lib'
项目类型是:Win32 应用程序(CLR 支持)。
其他提升 headers 似乎在其他项目上效果很好。 关于链接提升我缺少什么,我应该学习什么?
通过 运行 c:\boost
中的此命令修复了此问题(感谢 @marom):
b2.exe --with-filesystem --toolset=msvc-11.0 --build-type=complete stage