473,383 Members | 1,795 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,383 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 8608
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.