Felix Dombek
Felix Dombek

Reputation: 14372

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!

Upvotes: 0

Views: 1466

Answers (2)

Praetorian
Praetorian

Reputation: 109159

The Boost library naming convention is listed on the Getting Started page.

  • mt indicates multithreading is enabled
  • g 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 versions
  • s 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.

Upvotes: 3

Puppy
Puppy

Reputation: 146940

Visual Studio 2010 provides the C++0x header <regex> for you.

Upvotes: 2

Related Questions