Problem linking with xerces

Problem linking with xerces

Post by googl » Fri, 06 Feb 2004 09:27:21


I have compiled xerces using the gcc command line tools. When I want
to link it from a Metrowekrs 8.3 project, I get some link errors with
undefined functions. Stranger yet, the number of errors is not always
constant. It seems to me that the linker is not able to recognize some
symbols (name mangling problem). I had tried previously to create the
library inside MetroWerks, but here, we are having more problems with
the STL code crashing. BTW, this code is cross platform and works
perfectly from VC++. We cannot afford at this time to switch to CW 9.
Did anyone encounter this behavior? TIA,

- Bernard -
 
 
 

Problem linking with xerces

Post by MW Ro » Fri, 06 Feb 2004 23:57:22

In article < XXXX@XXXXX.COM >,



It might be a problem with the order of the link order, if you are using
CW 8.3 are you using the linker based on Apple's Mach-O or ours. Both
should accept GCC libraries and most name mangling is the same but our
version based on Apples should be exactly the same. However that is a
one pass linker and if the link order isn't right you can get undefined
errors.

I had tried previously to create the

That kind of means it is incorrect code :) Seriously unless you have
the latest version of Visual Studio (which is very good for compliance)
the older version was very bad and violated a lot of the standards in
order to support legacy code.

We cannot afford at this time to switch to CW 9.

If you can't switch to 9 and are using our linker try the one based on
Apple's linker and play with the link order a bit.

(be sure to use the .a libraries)

Ron

--

Metrowerks, maker of CodeWarrior - "Software Starts Here"
Ron Liechty - XXXX@XXXXX.COM - < http://www.yqcomputer.com/ >