2010-03-11 42 views
0

如何从Visual Studio 2003 C++ .NET中排除特定的.dll?
在发布版本期间,我收到以下警告。
任何帮助表示赞赏。如何从Visual Studio 2003 C++ .NET中排除特定的.dll?

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 

谢谢。

+0

这些警告没有任何伤害。你不能忽略他们吗? – SteelBytes 2010-03-24 06:11:43

回答

1

你的VS版本真的很旧,不确定是否适用。但是在VS2005/8中,你必须防止继承“Core Windows Library”项目属性表中的设置。您想通过删除从项目的纸张或设置链接器+输入设定做:

$(noinherit) kernel32.lib user32.lib 

诸如此类,列出所有你真正使用的.libs。

相关问题