简体   繁体   English

C ++项目,VS2005中的MSVCR80.DLL参考

[英]MSVCR80.DLL Reference in C++ project , VS2005

I have to modify in an old project , I just comment a line in a C++ 2.0 project with VS2005, when i build the project , i see on .net reflector a reference to MSVCR80.DLL, but on the old DLL, wich is on production, there is nor reference to this DLL 我必须在一个旧项目中进行修改,我只用VS2005在C ++ 2.0项目中注释了一行,当我构建该项目时,在.net反射器上看到了对MSVCR80.DLL的引用,但是在旧DLL上,生产,也没有对此DLL的引用

how can i remove this reference? 如何删除此参考?

Thank's in advance 提前致谢

MSVCR80.DLL provides the C runtime. MSVCR80.DLL提供C运行时。 Since you compile with a different compiler you have a different runtime library to work with. 由于您使用其他编译器进行编译,因此您可以使用其他运行时库。 See here for starting references to learn more. 请参阅此处以获取更多参考的入门参考。 You could configure your project to link the C runtime statically, and that would get rid of the DLL dependency. 您可以将您的项目配置为静态链接C运行时,这将摆脱DLL依赖性。

A static library by default links to the dynamic runtime, which is why your code has a dependency on msvcr80.dll. 默认情况下,静态库链接到动态运行时,因此,您的代码依赖于msvcr80.dll。 Visual C++ programs must link to a runtime. Visual C ++程序必须链接到运行时。 You can change your static library to use a static runtime to remove the dependency. 您可以更改静态库以使用静态运行时来删除依赖关系。

Do it in Configuration Properties | C/C++ | Code Generation | Runtime Library setting Configuration Properties | C/C++ | Code Generation | Runtime Library setting Configuration Properties | C/C++ | Code Generation | Runtime Library setting Configuration Properties | C/C++ | Code Generation | Runtime Library setting . Configuration Properties | C/C++ | Code Generation | Runtime Library setting
if it is set to Multi Threaded Debug DLL then set it to Multi Threaded .... Or just select the NON-DLL version from available list 如果将其设置为“ Multi Threaded Debug DLL则将其设置为“ Multi Threaded ...”。或者只是从可用列表中选择NON-DLL版本

Your code probably depends on mfc80.dll because you have Configuration Properties | 您的代码可能取决于mfc80.dll,因为您具有“配置属性” |“配置属性”。 General | 一般| Use of MFC set to one of the MFC options. 将MFC的使用设置为MFC选项之一。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM