4

I am getting this error when i tried to build/compile the code is VS2008 C++. the weird thing is i installed boost 1.46.1 but i get this error for boost 1.45.

LINK : fatal error LNK1104: cannot open file 'libboost_system-vc90-mt-1_45.lib' i tried looking on different sources. But unfortunately unable to solve it yet. although i included all the paths for libraries and include files.

Please any guidence in this regard will be highly appreciated.

Many Thanks.

Muhammad

Bart
  • 19,692
  • 7
  • 68
  • 77
Muhammad
  • 41
  • 1
  • 2
  • Maybe you are using the include files of the former version, causing the auto-link mechanism to search for 1.45 libraries as well? – Ferdinand Beyer Jul 01 '11 at 14:03
  • the thing, i bought this new machine and it has no previous version installed. so i just installed 1.46.1. still confused! – Muhammad Jul 01 '11 at 14:09
  • You should check how boost is linked in your project. Normally it should include only corresponding header files and all the necessary libs are included by the `#pragma comment`. – Mikhail Sep 10 '12 at 22:58

2 Answers2

2

I've also spent quite some time looking for the solution for this. In my case it was a simple preprocessor definition BOOST_ALL_NO_LIB, which implies you don't need the lib.

If that's not your case, you should probably use bjam.

atlaste
  • 30,418
  • 3
  • 57
  • 87
1

This is nothing to do with what you have installed (or not). What is happening is that VC++ expects this library but cannot find it. Check your "included libraries" in your project settings. Perhaps this project is supposed to use the 1.45 version.

Dennis
  • 3,683
  • 1
  • 21
  • 43