6

I've almost completely installed Boost, but I have a problem with how to set my path to Boost in Tools->options->projects->VC++ Directories.

I've written the path to include files and libraries (my folder contains two subfolders, lib and include), but when I try to use Boost with #include boost/regex.hpp, I got this linking error:

LINK : fatal error LNK1104: cannot open file 'libboost_regex-vc90-mt-gd-1_36.lib

Could you please tell me how to install Boost correctly for Visual Studio 2008?

Steve Piercy
  • 13,693
  • 1
  • 44
  • 57
chester89
  • 8,328
  • 17
  • 68
  • 113

3 Answers3

13

Use the Boost Installer by the Boost consulting group.

Konrad Rudolph
  • 530,221
  • 131
  • 937
  • 1,214
  • @Gili: thanks for the notice. This just goes to show, once again, that changing links sucks and that Cool Links Don’t Change™. – Konrad Rudolph Jan 27 '11 at 18:56
2

You might be interested in the Visual Studio 2008 Feature pack. It adds many of the features that have only been available from Boost until now, the features that are part of the C++ TR1.

John D. Cook
  • 29,517
  • 10
  • 67
  • 94
2

Also checkout this post for instructions on how to build Boost yourself.

Community
  • 1
  • 1
Filip Frącz
  • 5,881
  • 11
  • 45
  • 67