问题描述
我在Windows XP上构建qpid cpp解决方案时遇到了困难
I'm facing difficulty to build qpid cpp solution on windows xp
我已经安装了Boost 1.55.0,Python 2.7,Ruby 2.0.0和CMake 2.8
I have installed Boost 1.55.0, Python 2.7, Ruby 2.0.0 and CMake 2.8
然后我为Python,Ruby和CMake添加了环境变量路径,然后Boost变量是设置如下
Then I have added Environment variable paths for Python, Ruby and CMake, and then Boost variables areset as followed
BOOST_LIBRARYDIR C:\ Boost \ lib
BOOST_LIBRARYDIR C:\Boost\lib
BOOST_INCLUDEDIR C:\ Boost \ include
BOOST_INCLUDEDIR C:\Boost\include
我使用命令提示符下的以下命令构建Boost
I build Boost with following commands from command prompt
.\ b2
我已经下载了qpid-cpp-0.26,然后从命令提示符下使用以下命令来构建qpid
I have downloaded qpid-cpp-0.26, Then I build qpid with following command from command prompt
cmake -i -G "Visual Studio 10"
执行上述命令已为qpid生成解决方案文件
Executing the above command have generated solution file for qpid
然后,当我尝试构建解决方案文件时,我从解决方案文件中打开qpid以在Visual Studio 2010中进行构建在qpidCommon中给了我以下错误
Then I opened qpid from solution file to build in Visual Studio 2010, when I tried to build the solution itgave me following error in qpidCommon
无法打开文件'boost_thread-vc100-mt-gd-1_55.lib'
cannot open file 'boost_thread-vc100-mt-gd-1_55.lib'
经过一番搜索,我想出了类似的解决方案
After bit of searching, I came up with solutions like
在预处理器定义中添加"BOOST_ALL_DYN_LINK"
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
有什么想法吗?
推荐答案
我得到了一种解决方法,从命令提示符运行以下命令
I got a workaround, from command prompt run following command
bjam --build-type=complete
在项目属性-配置属性-VC ++目录中添加lib路径-图书馆目录-在此处添加图书馆路径(其中一个处于阶段-lib)
Add lib path in Project Properties - Configuration Properties - VC++ Directories- Library Directories - here add library path(one which is in stage - lib)
这对我有用.
这篇关于LNK1104:无法打开文件'boost_thread-vc100-mt-gd-1_55.lib'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!