When I try to link an .obj file,I get the warning message:

LINK : warning LNK4089: all references to "user32.dll" discarded by /OPT:REF

Why I get this message? (I don't use the /OPT switch)
If I don't use the user32.lib,the linker reports an unresolved external which refers to user32.dll
I think the only solution is to add the /IGNORE:4089 parameter.
Regards,

Vortex
Posted on 2003-02-05 13:03:36 by Vortex
You get this message if you include a lib but don't
call any functions in it. Did you remember to delete
reference to user32.inc AND user32.lib ?
Posted on 2003-02-05 18:57:54 by anon
anon,thanks for your interest,I wrote:

>If I don't use the user32.lib,the linker reports an unresolved external which refers to user32.dll

My program is using the masm32.lib.This library is calling a function from user32.dll,so I have to
use the user32.lib. The solution is very easy:Ignoring the warning by /IGNORE:4089

Regards,

Vortex
Posted on 2003-02-06 08:23:16 by Vortex