473,738 Members | 11,146 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_X86OrderCo mdats.dat : warning LNK4065: '?SUTL_SomeFunc tion@@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 1936
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******@micros oft.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=<som e_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
1688
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, I compiled the Python Extensions, but am getting the following error:
0
1812
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 the library in Linker-General-Addition Library Directories field under the Project options. The first question I have is....is this the correct way to include a static library. If not, then what is the correct way to do it (I need to make .NET...
0
1629
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 the library in Linker-General-Addition Library Directories field under the Project options. The first question I have is....is this the correct way to include a static library. If not, then what is the correct way to do it (I need to make .NET...
0
1452
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? Linking... atls.lib(atlbase.obj) : error LNK2001: unresolved external symbol ___security_cookie PenPacketInfoDlg.obj : error LNK2019: unresolved external
3
3908
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 << (_STL::basic_ostream<char, _STL::char_traits<char> >&, const signed char *)' defined in both module C:\ROSIEN\MONTIUM\SIMULATOR\MONTIUMSIMUTILITY.OBJ and C:\ROSIEN\HIGH2\BASICSIMULATOR.OBJ
4
4868
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 under ignore specific library, then I receive: ABContainer.obj : error LNK2019: unresolved external symbol
3
8674
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 obj/msg_2.o - make library
5
5389
by: Tanja Krammer | last post by:
Hi experts, is it possible to disable linker warnings (i.e. LNK4204)? Thanx
2
2785
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 reference is redundant, thus the linker ignores that library in order to make the code smaller. As it is expected, it only appears for release versions.
0
8788
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9476
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9263
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8210
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.