473,385 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

linker /ignore option no longer supported

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
2 8609
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Michel Rosien | last post by:
Hello All, I'm getting the following linker warning: (I'm using Borland C++ Builder 6) Public symbol '_STL::basic_ostream<char, _STL::char_traits<char> >& _STL::operator <<...
12
by: Fabio De Francesco | last post by:
Hello. I can't understand why I can't compile the following simple code, where I think I have applied all the needed rules for templates that are declared and defined in different files (*.h and...
19
by: David Logan | last post by:
We need an additional function in the String class. We need the ability to suppress empty fields, so that we can more effectively parse. Right now, multiple whitespace characters create multiple...
0
by: Namratha Shah \(Nasha\) | last post by:
Hi All, Assembly linker is a tool which is used to create an assembly by combining one or more .netmodules and resource files. In simple words an .netmodule is an IL file that does not have ...
3
by: Chucker | last post by:
Hi Folks, I got a Wrapper Dll around a native C++ static library. In .NET 1.1 this worked fine. When moving to .NET 2.0 I get a couple of unresolved externals / linker errors: Error 16 error...
5
by: Tanja Krammer | last post by:
Hi experts, is it possible to disable linker warnings (i.e. LNK4204)? Thanx
1
by: Felix | last post by:
After porting a project from VC6 to VC.NET 2003 I have a very strange problem generating link error 1104 for import libraries. I just ported the project and made some small adaptions so it fits...
5
by: marathoner | last post by:
I am in the process of converting a Visual C++ 6.0 project to Visual Studio 2005. The conversion is almost complete, but in the linking phase, I get the error: LINK : fatal error LNK1104:...
12
by: kath.neumann | last post by:
Hi, I just started to get a grip on C++ and and went through the tutorial. However, not even the standard "hello world" exercise works out :( I do get a linker error " Unresolved external...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.