You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Shehzad Valliani <sv...@ITIMPK.com> on 2004/07/13 12:47:40 UTC

Porting Xerces-C++ on CE.NET

Hello,
 
I am trying to port Xerces_2_4_0 to CE.Net using the files that are used by VC6. The list of files was taken by opening up XercesLib.dsp in notepad. A new workspace was created in eMbedded Visual C++ 4.0 and these files were added.
 
The problems that I am facing right now are that certain header files namely endian.h, gulliver.h, inttypes.h and strings.h are not recognized by the compiler. Secondly there is an error concerned with XERCES_CPP_NAMESPACE_END and the following error is given on building,
 
fatal error C1010: unexpected end of file while looking for precompiled header directive
 
The same error is given for almost all the .cpp files that are used.
 
Any ideas how to solve these issues.
 
Please respond
 
Thanks
 
Shehzad

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.712 / Virus Database: 468 - Release Date: 6/27/2004
 

Re: Porting Xerces-C++ on CE.NET

Posted by Alberto Massari <am...@progress.com>.
Hi Shehzad,

At 15.47 13/07/2004 +0500, Shehzad Valliani wrote:
>Hello,
>
>I am trying to port Xerces_2_4_0 to CE.Net using the files that are used 
>by VC6. The list of files was taken by opening up XercesLib.dsp in 
>notepad. A new workspace was created in eMbedded Visual C++ 4.0 and these 
>files were added.
>
>The problems that I am facing right now are that certain header files 
>namely endian.h, gulliver.h, inttypes.h and strings.h are not recognized 
>by the compiler.

I cannot find such headers in the VC++ files; are you sure you didn't 
include some Unix-specific headers? Which files do contain such #include?

>Secondly there is an error concerned with XERCES_CPP_NAMESPACE_END

Probably the compiler has no support for C++ namespaces: just comment the line

#define XERCES_HAS_CPP_NAMESPACE

in the util\Compilers\VCPPDefs.hpp header file

>and the following error is given on building,
>
>fatal error C1010: unexpected end of file while looking for precompiled 
>header directive

The project you created has the "use precompiled header" option turned on; 
please turn it off, as the Xerces sources don't have one.

Alberto

P.S. Once you have a working project file, could you consider submitting it 
for inclusion to the Xerces code? (just create an entry in JIRA with the 
project attached). I guess someone else would be interested in having 
Xerces compile out of the box for Windows CE/PocketPC/SmartPhone.


>
>The same error is given for almost all the .cpp files that are used.
>
>Any ideas how to solve these issues.
>
>Please respond
>
>Thanks
>
>Shehzad
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.712 / Virus Database: 468 - Release Date: 6/27/2004



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org