Reputation: 14372
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!
Upvotes: 0
Views: 1466
Reputation: 109159
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 linked d
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 librariesWhat is probably happening is that you didn't get the BoostPro installer to download the missing flavors.
Upvotes: 3