Problem with C++ Boost installation (can't find file) in VC++ 2010
I freshly installed Boost 1.44 with the latest available installer from http://www.boostpro.com/download/. Then I created a VC++ unmanaged commandline project. I added the line #include <boost/regex.hpp>
as stated in the Boost 开发者_运维技巧Getting Started tutorial, and I also put the Boost installation directory into the linking options. When I compile now, VS2010 reports a fatal error LNK1104: file "libboost_regex-vc100-mt-gd-1_44.lib" cannot be opened
. I checked the installation directory and there's only the file libboost_regex-vc100-mt-s-1_44.lib
(note -gd-
vs -s-
). Can anyone tell me what the problem is and how I can solve it? Thanks!
The Boost library naming convention is listed on the Getting Started page.
mt
indicates multithreading is enabledg
indicates debug versions of the CRT libraries were linkedd
indicates the version of the boost libraries themselves that you're linking to are debug versionss
indicates that the CRT libraries have been statically linked to by the boost libraries
What is probably happening is that you didn't get the BoostPro installer to download the missing flavors.
Visual Studio 2010 provides the C++0x header <regex>
for you.
精彩评论