Hi Patrick,

This is a problem that shows up with both CodeWarrior 9 and gcc 4.0, but not gcc 3.x. They don't like the fact that the static keyword is used redundantly in the definition of the data members. To fix the problem, remove the two instances of the static keyword in the .cpp file.

This issue has been fixed in cvs.

-jdb

On May 18, 2005, at 9:14 AM, Patrick Perroud wrote:

Hello,

I have downloaded XercesLib sources from http://xml.apache.org, and I am now trying to compile the mach-o release target, with CodeWarrior 9.5, on MacOS X 10.3.9, but failed so far with the following issues:
- - - - -
Error : object 'xercesc_2_6::MacOSUnicodeConverter::fgMyServiceId' redefined
MacOSUnicodeConverter.cpp line 79 static const XMLCh
MacOSUnicodeConverter::fgMyServiceId[] = {


Error : object 'xercesc_2_6::MacOSUnicodeConverter::fgMacLCPEncodingName' redefined
MacOSUnicodeConverter.cpp line 84 tatic const XMLCh
MacOSUnicodeConverter::fgMacLCPEncodingName[] =
- - - - -


So apparently there is a problem in 2.6 with the MacOSUnicodeConverter class, that differs from version 2.4 by adding this in the class definition (under "private:"):
- - - - -
static const XMLCh fgMyServiceId[]; // Name of the our unicode converter
static const XMLCh fgMacLCPEncodingName[; // Name of the LCP transcoder we create
- - - - -


With the following *implementation*:
- - - - -
static const XMLCh MacOSUnicodeConverter::fgMyServiceId[] = {
   chLatin_M, chLatin_a, chLatin_c, chLatin_O, chLatin_S, chNull
};

static const XMLCh MacOSUnicodeConverter::fgMacLCPEncodingName[] = {
chLatin_M, chLatin_a, chLatin_c, chLatin_O, chLatin_S, chLatin_L
, chLatin_C, chLatin_P, chLatin_E, chLatin_c, chLatin_o, chLatin_d
, chLatin_i, chLatin_n, chLatin_g, chNull
}
- - - - -


I have searched for *redifinitions* in XercesLib project, but didn't find any - so I suppose it's a kind of function member signature issue, but I can't see any difference between these class interfaces' signature and the signature of their actual implementations . . .

Everything else within that XercesLib 2.6 project did compile just fine - so that's too bad . . .

Any other idea or suggestion would be welcommed, indeed.

Best regards

Patrick Perroud


- - - - - - - - - http://p.perroud.free.fr/


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to