the error is not caused by the .c vs .cpp vs .hpp extension; you need to add a "this->" before each class member that the compiler complains as undeclared.
If you decide to upgrade to Xerces 2.6, it should be already fixed there.
Alberto
At 09.26 16/05/2005 +0300, Dan Vasilov wrote:
We're trying to build Xerces 2.2 on a Solaris system using gcc 3.4.3. The compiler reports a set of errors like --- In file included from /usr/work/xerces/02/xerces-c-src2_2_0/include/xercesc/util/RefArrayVectorOf. hpp:30, from XMLString.cpp:74: /usr/work/xerces/02/xerces-c-src2_2_0/include/xercesc/util/RefArrayVectorOf. c: In destructor `xercesc_2_2::RefArrayVectorOf<TElem>::~RefArrayVectorOf()': /usr/work/xerces/02/xerces-c-src2_2_0/include/xercesc/util/RefArrayVectorOf. c:21: error: `fAdoptedElems' undeclared (first use this function) /usr/work/xerces/02/xerces-c-src2_2_0/include/xercesc/util/RefArrayVectorOf. c:21: error: (Each undeclared identifier is reported only once for each function it appears in.) /usr/work/xerces/02/xerces-c-src2_2_0/include/xercesc/util/RefArrayVectorOf. c:23: error: `fCurCount' undeclared (first use this function) /usr/work/xerces/02/xerces-c-src2_2_0/include/xercesc/util/RefArrayVectorOf. c:24: error: `fElemList' undeclared (first use this function) We've used runConfigure -p solaris -c gcc -x g++ ---- We've also tried to define the XERCES_TMPLSINC flag, to build the .c files as .cpp files and to build xerces 2.6.
Our plan to fix this is: - upgrade to xerces 2.6 - move the source code from the .c files into the .hpp files - merge the changes into the main xerces source code tree.
This way we're sure the problem is gone for good and we'll be able to upgrade to any future version of xerces. We also want to verify the changed source code compiles fine on Windows and Linux. A. Is this all right with you? Shall we be allowed to merge the changes into the main source code tree? B. Which tests should we run? C. Are there other solutions you could suggest?
Dan
--------------------------------------------------------------------- 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]
