Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / December 2005

Tip: Looking for answers? Try searching our database.

LNK4089 Converting from VS6 Project to .NET 2003 Solution

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
j.a. harriman - 01 Dec 2005 21:03 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.