linker /ignore option no longer supported

  • Thread starter Thread starter Zarnywoop
  • Start date Start date
Z

Zarnywoop

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.
 
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.
 
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.
 
Back
Top