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

linker /ignore option no longer supported

P: n/a
Hi,

Could someone offer a solution to the following issue I have with vc7.1.

With VC6 it was possible to turn off linker warnings with a

#pragma comment( linker, "/ignore:4049" )

line in the source. With VC7.1 the linker now reports that /ignore is
unrecognised, and sure enough when consulting the docs. the option is no
longer documented.

How can I turn off linker warnings with vc7.1 ?

Thanks,

Richard.

Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Richard,

First, this switch has always been an unsupported/undocumented switch as
far as I know. I checked the MSDN October 2001 docs and it was not there
or in the most recent version of the docs as you mentioned.

In the recent versions of the linker they have disabled this undocumented
feature. Their desire I believe is to encourage people to correct the
warnings instead of just ignoring them.

There is not a replacement way of disabling warnings from the linker. You
can submit a request for this feature to be reenabled by using the
following page:

http://register.microsoft.com/mswish/suggestion.asp

Sorry about the inconvenience.

Thanks,
Zach
Microsoft PSS

This posting is provided "as is" with no warranties and confers no rights.

Nov 16 '05 #2

P: n/a
Zach,

Thanks for your prompt reply. This is unfortunate as the warning I want
to get rid of in a release build is:

LINK : warning LNK4089: all references to 'SHELL32.dll' discarded by
/OPT:REF

I've tried ignoring shell32.lib but the warning still appears. Any
suggestions on how to stop this would be appreciated.

Richard.
Zach Kramer wrote:
Richard,

First, this switch has always been an unsupported/undocumented switch as
far as I know. I checked the MSDN October 2001 docs and it was not there
or in the most recent version of the docs as you mentioned.

In the recent versions of the linker they have disabled this undocumented
feature. Their desire I believe is to encourage people to correct the
warnings instead of just ignoring them.

There is not a replacement way of disabling warnings from the linker. You
can submit a request for this feature to be reenabled by using the
following page:

http://register.microsoft.com/mswish/suggestion.asp

Sorry about the inconvenience.

Thanks,
Zach
Microsoft PSS

This posting is provided "as is" with no warranties and confers no rights.


Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.