Message: The following issue has been closed.
Resolver: Alberto Massari Date: Mon, 4 Oct 2004 3:06 AM Duplicate of #1267 --------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/XERCESC-386 Here is an overview of the issue: --------------------------------------------------------------------- Key: XERCESC-386 Summary: 3 minor issues with C++ Builder (ver 5.02) build Type: Bug Status: Closed Resolution: DUPLICATE Project: Xerces-C++ Components: Build Versions: 1.7.0 Assignee: Reporter: Jef Duncan Created: Thu, 21 Mar 2002 6:10 PM Updated: Mon, 4 Oct 2004 3:06 AM Environment: Operating System: Windows NT/2K Platform: PC Description: Three classes: XMLReader, NodeImpl and DOMString declare static data members in the .hpp file, then try to initialize those members in the .cpp file. C++ Builder version 5.02 doesn't like this; it gives a compile-time error: "cannot initialize member here". I moved the initialization data into the .hpp file (after the class declaration) and all was well. The specific members are: XMLByte XMLReader::fgCharCharsTable[0x10000] = { ... }; int NodeImpl::gLiveNodeImpls = 0; // Counters for debug & tuning. int NodeImpl::gTotalNodeImpls= 0; int DOMString::gLiveStringDataCount = 0; int DOMString::gTotalStringDataCount = 0; int DOMString::gLiveStringHandleCount = 0; int DOMString::gTotalStringHandleCount = 0; Thanks! Jef Duncan --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]