问题
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
回答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.
回答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
.
来源:https://stackoverflow.com/questions/6548883/link-fatal-error-lnk1104-cannot-open-file-libboost-system-vc90-mt-1-45-lib