fatal error LNK1104: cannot open file 'libboost_date_time-vc100-mt-gd-1_53.lib' - file ignored, no matter what i link

北慕城南 提交于 2019-12-18 08:26:25

问题


I have just bjamed boost and it seems like its still gonna refuse to work (I alread have tried and given up to make this library). What I did was, that I launched bjam.exe and I linked:

include directories: C:\ ... \boost_1_53_0
Library directories: C:\ ... \boost_1_53_0\bin.v2\libs

But I still get the error. So I decided to look in the folders, and this showed up to be path to the desired library:

C:\ ... \boost_1_53_0\bin.v2\libs\date_time\build\msvc-10.0\debug\link-static\threading-multi\

If I explicitly add this folder to the Library directories, the library is found but in VCC another error pops up, asking me for another library.
So how do I ask bjam to make a folder system that VCC can understand?


回答1:


Adding the C:...\boost_1_55_0\stage\lib directory worked for me. Added to:

Project properties -> Configuration Properties -> VC++ Directories -> Library Directories.




回答2:


Adding the following link to 'Configuration properties -> Linker -> General -> Additional Library Directories ' helped me as well. 'C:\Program Files\boost\boost_1_55_0\stage\lib'



来源:https://stackoverflow.com/questions/15398392/fatal-error-lnk1104-cannot-open-file-libboost-date-time-vc100-mt-gd-1-53-lib

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!