[英]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.