By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,987 Members | 1,607 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,987 IT Pros & Developers. It's quick & easy.

Disable linker warnings

P: n/a
Hi experts,
is it possible to disable linker warnings (i.e. LNK4204)?
Thanx
Mar 17 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
> 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/de...inglnk4204.asp

--

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


Mar 17 '06 #2

P: n/a
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
"Bruno van Dooren" <br**********************@hotmail.com> schrieb im
Newsbeitrag news:eU**************@tk2msftngp13.phx.gbl...
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/de...inglnk4204.asp

--

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

Mar 17 '06 #3

P: n/a
> 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.

--

Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"
Mar 18 '06 #4

P: n/a
>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
Mar 18 '06 #5

P: n/a
> >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

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...b;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?

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Mar 18 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.