473,403 Members | 2,323 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,403 software developers and data experts.

Linker warning about function ordering with VC.NET 2003

My project uses the /ORDER specifier to order functions as specified in file containing the decorated names of packaged functions (COMDATs). I am in the process of upgrading from VC6 to VC.NET 2003.

When linking a release build of my project VC.NET 2003, the following warning occurs for each function that is being ordered:

SUTL_X86OrderComdats.dat : warning LNK4065: '?SUTL_SomeFunction@@YAXXZ' cannot be ordered; ignored

The help for warning LNK4065 suggests that function-level linking (/Gy) needs to be enabled. But when I checked this setting it is already enabled.

I do not receive the LNK4065 warning when building the debug configuration of my project.

Any ideas?

Thanks.
Nov 17 '05 #1
3 1906
Further to my above message, when I convert my project from VC6 to VC.NET 2002, the function ordering works properly

But when I then convert the project to VC.NET 2003, I get the above series of warning messages indicating the functions cannot be ordered

Does anyone have function ordering working with VC.NET 2003

Thanks.
Nov 17 '05 #2
--------------------

| Subject: RE: Linker warning about function ordering with VC.NET 2003
| Date: Tue, 10 Feb 2004 09:06:10 -0800

| Further to my above message, when I convert my project from VC6 to VC.NET
2002, the function ordering works properly.

But when I then convert the project to VC.NET 2003, I get the above series
of warning messages indicating the functions cannot be ordered.

Does anyone have function ordering working with VC.NET 2003?

Thanks.
|

Hi,

If you wouldn't mind putting together a link-repro for me and sending it
to: ka******@microsoft.com, I can get our linker devs to take a look at the
issue and to get back to you.

Here's how you make a link-repro, just in case you don't know how:

All linkers:
1. mkdir <some_dir>
2. set link_repro=<some_dir>
3. if you build from msdev, start msdev from the command where #2 was
performed.
4. run the offending link command
5. if you were in msdev, exit it.
6. set link_repro=
7. copy any of the compiler generated .pdb files that are necessary.

6.20 and later linkers:
1. mkdir <some_dir>
2. add /linkrepro:<some_dir> to the linker command line
3. run the offending link command
4. copy any of the compiler generated .pdb files that are necessary.
Thanks!

Kang Su Gatlin
Visual C++ Program Manager

Nov 17 '05 #3
I finally realized that I was using the 60-day demo version of VC.NET 2003, which apparently has certain optimizations disabled for release builds, including function ordering.

I successfully rebuilt the project using the full version of the compiler. Issue resolved.

Thanks anyway for your reply Kang.

Ryan
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jim | last post by:
All, I'm trying to debug a Python GPF while running a script that we've written. After fixing up some of the paths for the Python build and successfully building Python from ActiveState source,...
0
by: TGF | last post by:
Hello, I am creating a console app. I try to link a static library by including it in the Linker-Input-Additional Dependencies field under the Project properties. Then I specify the path to...
0
by: TGF | last post by:
Hello, I am creating a console app. I try to link a static library by including it in the Linker-Input-Additional Dependencies field under the Project properties. Then I specify the path to...
0
by: KS | last post by:
I am getting linker error for a code that was tested and running. I opened the project in VS.NET 2003 and now i get these errors - I am sure it is some options issue. Can anyone please help? ...
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 <<...
4
by: Eric | last post by:
Hello I receive (only in Release build) the following linker warning: LINK : warning LNK4089: all references to 'WS2_32.dll' discarded by /OPT:REF If I set WS2_32.lib in project properties...
3
by: Georg | last post by:
Hello, I must be doing something wrong, but I don't get it: - compile gcc -c -O -Iinc src/hello.c -o obj/hello.o gcc -c -O -Iinc src/msg_1.c -o obj/msg_1.o gcc -c -O -Iinc src/msg_2.c -o...
5
by: Tanja Krammer | last post by:
Hi experts, is it possible to disable linker warnings (i.e. LNK4204)? Thanx
2
by: Oneironaut | last post by:
Hello friends, I have an issue with a linker warning. It is the warning LNK4089. I am working in MSVC6.0 I investigated and this warning tells that the import of the library to which it makes...
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
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...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.