I don't think any issues with our code as we have successfully compiled the 
same Xerces2.8 with our application on Windows, SuseLinux10SP2, RHEL5.2 without 
any issues. I feel the difference in behavior with different platforms is more 
in whether the compiler has defined the Macro XERCES_HAS_CPP_NAMESPACE or not. 
I will get the preprocessor output on both RHEL5.2 and solaris for comparison.

Regards,
Anil


From: David Bertoni
Sent: Sat 4/11/2009 1:55 AM
To: c-users@xerces.apache.org
Subject: Re: Xerces 2.8 compilation issues with Compiler: Sun WorkShop 6 update 
2 C++ 5.3


Anilkumar DK wrote:
Hi,

We were using Xerces1.7 with our application and now we are moving to
Xerces2.8. We are able to build Xercers2.8 libraries on Solaris 8 with
Compiler: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-24 2006/11/03

But when we integrate with our application using the Xerces 2.8 headers,
we get compilation errors as below.

We tried to undef the MACRO XERCES_HAS_CPP_NAMESPACE but didn't help.
Please let us know your suggestions to resolve this issue.
Are you sure this isn't a bug in your own code or in how you're including the header files? If the Xerces-C library and sample applications build, then there's nothing wrong with the Xerces-C code or the compiler.

I suggest you take a look at the C++ preprocessor output so you can see the actual source code the compiler is working on.

Dave

Reply via email to