Hi i'm having a probelm while assembling a file.

The link is reporting:

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
LINK : warning LNK4089: all references to "VERSION.dll" discarded by /OPT:REF
LINK : warning LNK4089: all references to "comdlg32.dll" discarded by /OPT:REF


Why the libraries are being discared if i did not used any /OPT:REF command?


Best Regards,

Beyond2000!
Posted on 2002-11-06 19:47:32 by Beyond2000!
Hi,

I think it's because you included the includes and library files but never called any of their accompaning functions.

James:alright:
Posted on 2002-11-06 21:43:33 by JamesE
They're discarded since you don't use any functions from the libs, and it's redunant to have them liked in when not used. :)

Here is the link to the linkers /OPT and an detailed description:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_.2f.opt.asp
Posted on 2002-11-06 23:45:14 by scientica