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 / Languages / Managed C++ / March 2006

Tip: Looking for answers? Try searching our database.

Disable linker warnings

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tanja Krammer - 17 Mar 2006 13:49 GMT
Hi experts,
is it possible to disable linker warnings (i.e. LNK4204)?
Thanx
Bruno van Dooren - 17 Mar 2006 22:21 GMT
> Hi experts,
> is it possible to disable linker warnings (i.e. LNK4204)?
> Thanx

Without the actual message and an explanation of what you are doing/have
done I cannot give you much more information than this:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vct
bslinkertoolswarninglnk4204.asp


Signature

Kind regards,
   Bruno van Dooren
   bruno_nos_pam_van_dooren@hotmail.com
   Remove only "_nos_pam"

Tanja Krammer - 17 Mar 2006 23:51 GMT
Hi,
I know what this warning means, I just want to disable it. (Not prevent). I
can't find command line argument to disable specific LINKER warnings
>> Hi experts,
>> is it possible to disable linker warnings (i.e. LNK4204)?
[quoted text clipped - 4 lines]
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vct
bslinkertoolswarninglnk4204.asp
Bruno van Dooren - 18 Mar 2006 14:59 GMT
> Hi,
> I know what this warning means, I just want to disable it. (Not prevent). I
> can't find command line argument to disable specific LINKER warnings

As far as I know there is no general mechanism for disabling linker warnings.
The only thing you can do is to prevent them, for example by using /Zi or
/NODEFAULTLIB if appropriate.

Signature

Kind regards,
   Bruno.
   bruno_nos_pam_van_dooren@hotmail.com
   Remove only "_nos_pam"

David Lowndes - 18 Mar 2006 16:44 GMT
>is it possible to disable linker warnings (i.e. LNK4204)?

I don't know if this will work or not...

Try adding the following to your linker options.

  /IGNORE:4204

Dave
Bruno van Dooren - 18 Mar 2006 20:53 GMT
> >is it possible to disable linker warnings (i.e. LNK4204)?
>
[quoted text clipped - 3 lines]
>
>   /IGNORE:4204
Hi,
You can give it a try, but according to this, it should not work. that
switch is not valid anymore:
http://support.microsoft.com/default.aspx?scid=kb;en-us;103717

I just did the following test:  building an exe with a missing symbol. this
is only possible by using /FORCE. This will force the linker to output the
exe, but with warning LNK4088.

I was not able to suppres this warning with /IGNORE.
on the other hand, if you specify an unknown switch like /BLABLA it will be
printed in the output window with the message
LINK : warning LNK4044: unrecognized option '/BLABLA'; ignored

So one one hand the /IGNORE switch seems to be ignored, but on the other
hand it is still recognized as a known linker switch.
Perhaps one of the MVP's can dig up some more info?

Signature

Kind regards,
   Bruno van Dooren
   bruno_nos_pam_van_dooren@hotmail.com
   Remove only "_nos_pam"


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.