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 Nathan Smith <Na...@Paxar.com> on 2004/03/22 21:53:33 UTC

using the latest version of xerces

I was using an older version of xml4c in my VC6.0 program, but I wanted to
make sure the problems I was having weren't related to the version I was
using, so I download and built the latest version of xml4c.
I went into the project settings and changed the include directories and
library path to the new ones, and updated the include staements to the
newest path.  But for some reason when trying to build my program now there
are all kinds off errors essentially saying all of the xml4c classes I have
used in the project are either undefined or not even a class or namespace.
It looks like the include files are being read, but it doesn't seem to be
accepting them for some reason.  Am I missing something totally simple here?
Below are some of the errors I'm getting.
 
Thanks.
 
error C2504: 'HandlerBase' : base class undefined
C:\Paxar\pcmplus\saxhandlers.h(24) : error C2061: syntax error : identifier
'AttributeList'
C:\Paxar\pcmplus\domwrite.h(14) : error C2653: 'DOM_DOMException' : is not a
class or namespace name
C:\Paxar\pcmplus\domwrite.h(14) : error C2146: syntax error : missing ';'
before identifier 'lastDomExCode'
C:\Paxar\pcmplus\domwrite.h(14) : error C2501: 'ExceptionCode' : missing
storage-class or type specifiers
C:\Paxar\pcmplus\domwrite.h(14) : error C2501: 'lastDomExCode' : missing
storage-class or type specifiers
C:\Paxar\pcmplus\domwrite.h(16) : error C2143: syntax error : missing ','
before '&'
C:\Paxar\pcmplus\domwrite.h(16) : error C2059: syntax error : '&'
C:\Paxar\pcmplus\domwrite.h(17) : error C2146: syntax error : missing ';'
before identifier 'depth'
C:\Paxar\pcmplus\domwrite.h(17) : error C2501: 'DOMString' : missing
storage-class or type specifiers
C:\Paxar\pcmplus\domwrite.h(17) : error C2501: 'depth' : missing
storage-class or type specifiers
C:\Paxar\pcmplus\domwrite.h(25) : error C2143: syntax error : missing ','
before '&'
C:\Paxar\pcmplus\domwrite.h(25) : error C2059: syntax error : '&'
C:\Paxar\pcmplus\domwrite.h(26) : error C2653: 'DOM_DOMException' : is not a
class or namespace name
C:\Paxar\pcmplus\domwrite.h(26) : error C2146: syntax error : missing ';'
before identifier 'getLastDomExCode'
C:\Paxar\pcmplus\domwrite.h(26) : error C2501: 'ExceptionCode' : missing
storage-class or type specifiers
C:\Paxar\pcmplus\domwrite.h(33) : error C2504: 'ErrorHandler' : base class
undefined
 

Re: using the latest version of xerces

Posted by Gareth Reakes <pa...@parthenoncomputing.com>.
Hi,
	you are using quite an old version. We don't have DOMString any
more (or any of the old DOM_ classes). We also use namespaces now which I
doubt we did then. I'm sure someone put together a FAQ when we changed
over. Its probably worth a look in the archives and on the web if you get
stuck converting.

Gareth



On Mon, 22 Mar 2004, Nathan Smith wrote:

> I was using an older version of xml4c in my VC6.0 program, but I wanted to
> make sure the problems I was having weren't related to the version I was
> using, so I download and built the latest version of xml4c.
> I went into the project settings and changed the include directories and
> library path to the new ones, and updated the include staements to the
> newest path.  But for some reason when trying to build my program now there
> are all kinds off errors essentially saying all of the xml4c classes I have
> used in the project are either undefined or not even a class or namespace.
> It looks like the include files are being read, but it doesn't seem to be
> accepting them for some reason.  Am I missing something totally simple here?
> Below are some of the errors I'm getting.
>
> Thanks.
>
> error C2504: 'HandlerBase' : base class undefined
> C:\Paxar\pcmplus\saxhandlers.h(24) : error C2061: syntax error : identifier
> 'AttributeList'
> C:\Paxar\pcmplus\domwrite.h(14) : error C2653: 'DOM_DOMException' : is not a
> class or namespace name
> C:\Paxar\pcmplus\domwrite.h(14) : error C2146: syntax error : missing ';'
> before identifier 'lastDomExCode'
> C:\Paxar\pcmplus\domwrite.h(14) : error C2501: 'ExceptionCode' : missing
> storage-class or type specifiers
> C:\Paxar\pcmplus\domwrite.h(14) : error C2501: 'lastDomExCode' : missing
> storage-class or type specifiers
> C:\Paxar\pcmplus\domwrite.h(16) : error C2143: syntax error : missing ','
> before '&'
> C:\Paxar\pcmplus\domwrite.h(16) : error C2059: syntax error : '&'
> C:\Paxar\pcmplus\domwrite.h(17) : error C2146: syntax error : missing ';'
> before identifier 'depth'
> C:\Paxar\pcmplus\domwrite.h(17) : error C2501: 'DOMString' : missing
> storage-class or type specifiers
> C:\Paxar\pcmplus\domwrite.h(17) : error C2501: 'depth' : missing
> storage-class or type specifiers
> C:\Paxar\pcmplus\domwrite.h(25) : error C2143: syntax error : missing ','
> before '&'
> C:\Paxar\pcmplus\domwrite.h(25) : error C2059: syntax error : '&'
> C:\Paxar\pcmplus\domwrite.h(26) : error C2653: 'DOM_DOMException' : is not a
> class or namespace name
> C:\Paxar\pcmplus\domwrite.h(26) : error C2146: syntax error : missing ';'
> before identifier 'getLastDomExCode'
> C:\Paxar\pcmplus\domwrite.h(26) : error C2501: 'ExceptionCode' : missing
> storage-class or type specifiers
> C:\Paxar\pcmplus\domwrite.h(33) : error C2504: 'ErrorHandler' : base class
> undefined
>
>

-- 
Gareth Reakes, Managing Director            +44-1865-811184
Parthenon Computing                http://www.parthcomp.com




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


Re: using the latest version of xerces

Posted by da...@us.ibm.com.



Take a look at the documentation regarding migrating to C++ namespaces:

http://xml.apache.org/xerces-c/migrate_archive.html

Dave



|---------+--------------------------->
|         |           Nathan Smith    |
|         |           <Nathan.Smith@Pa|
|         |           xar.com>        |
|         |                           |
|         |           03/22/2004 12:53|
|         |           PM              |
|         |           Please respond  |
|         |           to xerces-c-dev |
|---------+--------------------------->
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                                                  |
  |        To:      "XML4C List (xerces-c-dev@xml.apache.org)" <xe...@xml.apache.org>                                                         |
  |        cc:      (bcc: David N Bertoni/Cambridge/IBM)                                                                                             |
  |        Subject: using the latest version of xerces                                                                                               |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|



I was using an older version of xml4c in my VC6.0 program, but I wanted to
make sure the problems I was having weren't related to the version I was
using, so I download and built the latest version of xml4c.
I went into the project settings and changed the include directories and
library path to the new ones, and updated the include staements to the
newest path.  But for some reason when trying to build my program now there
are all kinds off errors essentially saying all of the xml4c classes I have
used in the project are either undefined or not even a class or namespace.
It looks like the include files are being read, but it doesn't seem to be
accepting them for some reason.  Am I missing something totally simple
here?  Below are some of the errors I'm getting.

Thanks.

error C2504: 'HandlerBase' : base class undefined
C:\Paxar\pcmplus\saxhandlers.h(24) : error C2061: syntax error : identifier
'AttributeList'
C:\Paxar\pcmplus\domwrite.h(14) : error C2653: 'DOM_DOMException' : is not
a class or namespace name
C:\Paxar\pcmplus\domwrite.h(14) : error C2146: syntax error : missing ';'
before identifier 'lastDomExCode'
C:\Paxar\pcmplus\domwrite.h(14) : error C2501: 'ExceptionCode' : missing
storage-class or type specifiers
C:\Paxar\pcmplus\domwrite.h(14) : error C2501: 'lastDomExCode' : missing
storage-class or type specifiers
C:\Paxar\pcmplus\domwrite.h(16) : error C2143: syntax error : missing ','
before '&'
C:\Paxar\pcmplus\domwrite.h(16) : error C2059: syntax error : '&'
C:\Paxar\pcmplus\domwrite.h(17) : error C2146: syntax error : missing ';'
before identifier 'depth'
C:\Paxar\pcmplus\domwrite.h(17) : error C2501: 'DOMString' : missing
storage-class or type specifiers
C:\Paxar\pcmplus\domwrite.h(17) : error C2501: 'depth' : missing
storage-class or type specifiers
C:\Paxar\pcmplus\domwrite.h(25) : error C2143: syntax error : missing ','
before '&'
C:\Paxar\pcmplus\domwrite.h(25) : error C2059: syntax error : '&'
C:\Paxar\pcmplus\domwrite.h(26) : error C2653: 'DOM_DOMException' : is not
a class or namespace name
C:\Paxar\pcmplus\domwrite.h(26) : error C2146: syntax error : missing ';'
before identifier 'getLastDomExCode'
C:\Paxar\pcmplus\domwrite.h(26) : error C2501: 'ExceptionCode' : missing
storage-class or type specifiers
C:\Paxar\pcmplus\domwrite.h(33) : error C2504: 'ErrorHandler' : base class
undefined



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