LNK1104: cannot open file 'boost_thread-vc100-mt-gd-1_55.lib'

痞子三分冷 提交于 2020-01-15 02:40:08

问题


I'm facing difficulty to build qpid cpp solution on windows xp

I have installed Boost 1.55.0, Python 2.7, Ruby 2.0.0 and CMake 2.8

Then I have added Environment variable paths for Python, Ruby and CMake, and then Boost variables are set as followed

BOOST_ROOT C:\Boost

BOOST_LIBRARYDIR C:\Boost\lib

BOOST_INCLUDEDIR C:\Boost\include

I build Boost with following commands from command prompt

bootstrap

.\b2

I have downloaded qpid-cpp-0.26, Then I build qpid with following command from command prompt

cmake -i -G "Visual Studio 10"

Executing the above command have generated solution file for qpid

Then I opened qpid from solution file to build in Visual Studio 2010, when I tried to build the solution it gave me following error in qpidCommon

cannot open file 'boost_thread-vc100-mt-gd-1_55.lib'

After bit of searching, I came up with solutions like

Adding “BOOST_ALL_DYN_LINK” in Preprocessor definations

Adding Library path in Linker – General - Additional Library Directories

but above solutions didn't work for me

Any Ideas?


回答1:


I got a workaround, from command prompt run following command

bjam --build-type=complete

Add lib path in Project Properties - Configuration Properties - VC++ Directories - Library Directories - here add library path(one which is in stage - lib)

This worked for me.



来源:https://stackoverflow.com/questions/23468417/lnk1104-cannot-open-file-boost-thread-vc100-mt-gd-1-55-lib

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