C++ Builder IDE >> Invalid linking order obj; own-libs; system-libs under Win-XP

by Martin Kaul » Tue, 29 Nov 2005 00:19:10 GMT

Hi,

Using BCB6+Win-XP I have a Problem with the linking order.

Normaly (with W2K) the linking order was (always)

1. OBJ files of the Application
2. own libraries
3. system libraries

I use this order cause I have overridden the global operator new with my
own variant and put my "new" into an own library. My Application must
not use the operator new of the system library.


Now (with Win-XP) I have the Problem, that sometimes the different
modules (OBJ+Libs) are linked in a mystic way.

Today I put my application in the directory
"C:\Project\abc\platform\software" and the linking order was mismachted
(system libs are linked before own libs and thus systemfunctions and not
my own overridden system functions area used).

After changing the projectpath of my application to
"C:\Project\abc\platform\sw" the linking order was correct (own libs
before system-libs).

It seems that this effect depends on the length of the projectpath :-/

With Windows 2000 I had this mystic effect never before.

Do someone know what the linker do?

regards
Martin


Similar Threads

1. Invalid linking order obj; own-libs; system-libs under Win-XP

2. How to Static link system libs

Hello,
I have Visual C++ 2005 on XP-Pro.  I try do do a "quick and dirty" program 
to run on a Win2000 computer. The only system call is a "printf()". When I 
try to run this program on the other computer, there is an error message 
saying "this program can not be started on this computer".
I suppose, this is due to the missing system DLLs msvcr80.dll, msvcm80.dll 
and msvcp80.dll.

How can I link the equivalent libs statically to my program?

I cannot find any switch. The older versions of Visual C++, had a checkbox 
for this.

Thanks in advance....

Johannes Kehrer
 
-- 
Johannes Kehrer

3. converting coff libs to omf libs

4. Access violation in unmanaged code: Linking managed with unmanaged static libs

5. Problem linking static libs with common dependencies

6. linking the C++ libs

Hi,

I'm having some trouble linking the Informix C++ libraries to my own C++
code.

My code includes the <it.h> header file and compiles ok, but whenever I try
using one of the library classes/objects, I get an 'undefined reference to'
error when linking. First I thought I wrongly linked the libraries to my .o
file, but even the examples (demo/c++) don't link correcly as they give the
exact same errors ('make curstst' for example). Is there any way of checking
if the installed libraries are working?
I installed SDK 2.81 and try compiling with g++ version 3.3.1.
Thanks for any help,

Martin


7. VS2005 SP1 binaries fail to link w VS2005 baseline libs - Microsoft Visual C++/VC++

8. How to add libs to link line in VS05

I am embarrassed to admit this - but I am having trouble figuring out how to 
add PowrProf.lib to a simple VS05 C++ MFC dialog project. Would some kind 
person take pity on someone who has been working in MsDev 6 since it came 
out and is now sruggling with the 'improved' way things are done in VS05?
-- 
Richard Lewis Haggard
General: www.Haggard-And-Associates.com

Please come visit here for a couple thousand good giggles!: 
www.haggard-and-associates.com/Humor/humor.htm