需要帮助来消除库冲突 [英] Need help to remove library conflicts

查看:65
本文介绍了需要帮助来消除库冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我有一个使用Visual Studio早期版本创建的.lib文件,也许是2003年
我在Visual Studio 2010中将其与我的代码链接.构建成功,但收到此警告

警告LNK4098:defaultlib``msvcrt.lib"与其他库的使用发生冲突;使用/NODEFAULTLIB:library

我希望我的应用程序使用VS2010''msvcrt.lib''库,该库比
更新 库嵌入在.lib文件中.

如何确保VS2010库已链接?
有什么办法可以迫使我的旧.lib使用新的``msvcrt.lib''?

我在本地CPP中编程.

谢谢前进
mr.abzadeh

Hi guys

I have a .lib file created with previous versions of visual studio, perhaps 2003
I link it with my code in visual studio 2010. build succeeds but I get this warning

warning LNK4098: defaultlib ''msvcrt.lib'' conflicts with use of other libs; use /NODEFAULTLIB:library

I want my application to use VS2010 ''msvcrt.lib'' library, which is newer than the
library embeded in .lib file.

How can I make sure that the VS2010 library is linked ?
Is ther any way to force my old .lib to use new ''msvcrt.lib'' ?

I program inNative CPP.

Thanks in forward
mr.abzadeh

推荐答案

如果发生冲突,请转到

配置属性->链接器->输入(忽略特定的默认库),然后将MSVCRT.lib
if its conflicting go to

Configuration Property->linker-> input (Ignore Specific Default library) and put MSVCRT.lib


这篇关于需要帮助来消除库冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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