My Program link happen:

LINK : warning LNK4089: all references to "COMCTL32.dll" discarded by /OPT:REF
LINK : warning LNK4089: all references to "GDI32.dll" discarded by /OPT:REF
LINK : warning LNK4089: all references to "KERNEL32.dll" discarded by /OPT:REF
LINK : warning LNK4089: all references to "USER32.dll" discarded by /OPT:REF

How cao i do?I'm sorry my english.
Posted on 2004-03-19 11:03:44 by sysnet
It just means that you included the lib file but did not use it, you can either ignore the messages or remove the inc/lib files.

There is a search feature on the board:

http://www.asmcommunity.net/board/index.php?topic=13462

http://www.asmcommunity.net/board/index.php?topic=12726

There are more of these.
Posted on 2004-03-19 11:10:51 by donkey
You can also solve the problem by using the syntax, /OPT:NOREF as the linker has /OPT:REF enabled by default.
Posted on 2004-03-20 11:54:15 by hutch--
It's not a "problem", it's a helpful diagnostic warning. Unless you're doing really tricky things, the warning is completely harmless.

/OPT:NOREF is silly, as it will include unnecessary DLL's (well, only the ones you implib but don't use, of course). If you're to do anything about this, edit your source and remove any superfluous includelib statements.
Posted on 2004-03-20 12:42:01 by f0dder