开发者

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

开发者 https://www.devze.com 2022-12-22 18:54 出处:网络
How do I exclude specific .dlls from Visual Studio 2003 C++ .NET? During release build I get the following warnings.

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

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 /O开发者_如何学运维PT: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. But in VS2005/8 you would have to prevent inheriting the settings from the "Core Windows Library" project property sheet. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号