使用MultiThreaded Dll Exe链接MultiThreaded Dll项目 [英] Linking MultiThreaded Dll Project with MultiThreaded Dll Exe

查看:74
本文介绍了使用MultiThreaded Dll Exe链接MultiThreaded Dll项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我用项目配置编译了我的Dll作为MultiThreaded Dll。和我连接这个Dll的我的Application exe也编译为MultiThreaded Dll。,但当我编译时我得到链接器错误说:



Hi,

I have compiled my Dll with project configuration as MultiThreaded Dll., and my Application exe to which i am linking this Dll is also compiled as MultiThreaded Dll., But When i compile i am getting Linker Error Saying :

"

Error   155 error LNK1104: cannot open file 'libboost_log-vc100-mt-sgd-1_49.lib'    <MyLibarayProjectpath>\LINK   <LibraryName>







请注意::它试图打开的Boost Libaray是静态模式库。为什么我的项目被编译为Multithreaded Dll试图打开一个Satic库,同时链接和失败因为这个。



任何建议..



谢谢

Sajith


"

Note that :: The Boost Libaray that it is trying to open is a static mode libarary. Why is my project that is compiled as Multithreaded Dll trying to Open a Satic Library while linking and failing because of that.

Any Suggestions ..

Thanks
Sajith

推荐答案

对不起延迟,



这就是问题所在,我有一个Vs 2010解决方案文件,里面有多个项目。两个项目编译为库,一个dll都链接到Main Exe项目。



我试图将我的exe和dll项目编译为Multithreaded Dll,而我的其他项目仍然是多线程的解决方案,因此当我编译我的应用程序时,它正在编译所有的lib和dll和libs寻找libboost_log-vc100-mt-sgd-1_49.lib。这实际上并不存在于我链接的库文件夹中。



@Richard MacCutchan感谢您的时间。
Sorry For the Delay,

This was the problem, i had a Vs 2010 solution File that had muliple projects in it., two projects where compiled as libraries and one as dll all linked to the Main Exe Project.

I was trying to compile my exe and dll project as Multithreaded Dll while my other projects in the solution where still Multithread and hence When i compiled my application, it was compiling all the lib and dll and libs where looking for the "libboost_log-vc100-mt-sgd-1_49.lib." which was actually not present in the library folder i linked too.

@Richard MacCutchan Thanks for your time.


这篇关于使用MultiThreaded Dll Exe链接MultiThreaded Dll项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆