我已成功构建Boost.CMake并将.lib文件放入build / lib目录中。但他们没有正确的纳米惯例。所以我得到了错误。我该如何解决这个问题?
------ Rebuild All started: Project: Test, Configuration: Release Win32 ------
Deleting intermediate and output files for project 'Test', configuration 'Release|Win32'
Compiling...
Main.cpp
Linking...
LINK : fatal error LNK1104: cannot open file 'libboost_regex-vc90-mt-1_47.lib'
Build log was saved at "file://c:\Users\Chameera\Documents\Visual Studio 2008\Projects\Test\Test\Release\BuildLog.htm"
Test - 1 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
答案 0 :(得分:-1)
错误是因为编译器无法找到libboost_regex-vc90-mt-1_47.lib,这是来自boost的正则表达式库。如果您已经拥有该lib,请添加到库目录,否则,请构建库。 Here就是这样。