简体   繁体   English

如何从Visual Studio 2003 C ++ .NET中排除特定的.dll?

[英]How do I exclude specific .dlls from Visual Studio 2003 C++ .NET?

How do I exclude specific .dlls from Visual Studio 2003 C++ .NET? 如何从Visual Studio 2003 C ++ .NET中排除特定的.dll?
During release build I get the following warnings. 在发行版本期间,我收到以下警告。
Any help is appreciated. 任何帮助表示赞赏。

Generating Code...
Linking...
LINK : warning LNK4089: all references to 'ADVAPI32.dll' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'SHELL32.dll' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'SHLWAPI.dll' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'comdlg32.dll' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'ole32.dll' discarded by /OPT:REF

Thank You. 谢谢。

Your version of VS is really old, not sure if this applies. 您的VS版本真的很旧,不确定是否适用。 But in VS2005/8 you would have to prevent inheriting the settings from the "Core Windows Library" project property sheet. 但是在VS2005 / 8中,您必须防止从“ Core Windows Library”项目属性表继承设置。 Which you'd do by either removing the sheet from the project or setting the Linker + Input setting to: 通过从项目中删除工作表或将“链接器+输入”设置设置为:

$(noinherit) kernel32.lib user32.lib 

etcetera, listing all the .libs you really use. etcetera,列出您真正使用的所有.lib。

暂无
暂无

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

相关问题 如何在 C++ Visual Studio 中使用 alt 代码符号 - How do I use alt code symbols in c++ visual studio 如何设置Visual Studio Code problemMatcher以匹配C ++错误? - How do I set up Visual Studio Code problemMatcher to match C++ errors? 如何在 Visual Studio 2019 中有条件地编译 c++ 源文件? - How do I conditionally compile c++ source files in Visual Studio 2019? 如何在Visual Studio(C ++)中将文字汉字字符串分配给wchar_t *? - How do I assign a literal chinese string to a wchar_t* in visual studio(c++)? 如何在 Visual Studio c++ 项目中指定“任何大于 10.0 的 Windows SDK 版本”? - How do I specify "any Windows SDK version greater than 10.0" in a Visual Studio c++ project? 如何设置Vim以使用Visual Studio 2010的C ++编译器进行编译? - How do I set up Vim to compile using Visual Studio 2010's C++ compiler? Visual C ++库DLL是否已本地化? - Are Visual C++ library DLLs localized? 使用Visual Studio 2010,如何为Visual C ++ Win32控制台应用程序提供输入? - Using Visual Studio 2010, how do I provide input to a Visual C++ Win32 Console Application? 如何自动化(从命令行)安装 Visual Studio Build Tools 构建环境,适用于 C++、.NET、C# 等 - How to automate (from command-line) the installation of a Visual Studio Build Tools build environment, for C++, .NET, C#, etc 如何在Visual Studio中使用C ++ shlwapi库? - How can I use the C++ shlwapi library in Visual Studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM