Use compiled Boost library with Visual Studio 2010

2019-08-03 04:57发布

问题:

I try to use compiled Boost library (FileSystem) with Visual Studio. So, I add the boost lib directory in :

Project Properties > Linker > Additional Library Directories

The problem is Visual Studio try to add a prefix lib :

fatal error LNK1104: cannot open file 'libboost_filesystem-vc100-mt-gd-1_51.lib'

But the real name of the lib is simply boost_filesystem-vc100-mt-gd-1_51.lib

How to disable the prefix before the lib name ?

Thank you !

回答1:

It wasn't a problem of a prefix. To fix that I just launched the BoostPro installer and installed all the debug lib.