I have a couple of VS6 projects that I have converted to .NET 2003
(double-clicking on *.dsw file and choosing "yes to all").
The VS6 projects compiled w/ no warnings, but when I do build of these
projects (as .NET 2003 solutions), I am getting two "LNK4089" warnings per
.NET solution.
One is for the "all references to 'OLEAUT32.dll' discarded by /OPT:REF", the
other is for the "all references to 'USER32.dll' discarded by /OPT:REF".
Why are these cropping up by just converting the projects?
Thanks. Jeff
"Gary Chang[MSFT]" - 02 Dec 2005 08:31 GMT
Hi Jeff,
>One is for the "all references to 'OLEAUT32.dll' discarded by /OPT:REF"
>the other is for the "all references to 'USER32.dll' discarded by
/OPT:REF".
>Why are these cropping up by just converting the projects?
This warning simply means that you are linking against the libraries
OLEAUT32.dll and USER32.dll and the linker has detected that you are not
really using any functions from them. Those messages are just warning
messages, it doesn't means your program has any errors. it may be caused by
the corresponding VC2003's linker option is different from VC6's.
If you want to suppress this warning, you can tell the linker to ignore it
by adding the /IGNORE:4089 switch to the additional linker command line
from the Properties/Linker/Cooman Line or just change the corresponding
linker option to /OPT:NOREF(Project
Properties/Linker/Optimization/Reference) directly.
Thanks!
Best regards,
Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn
This posting is provided "AS IS" with no warranties, and confers no rights.