You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Janaki Ramani <ja...@nova-hub.com> on 2006/08/31 11:27:32 UTC

Xerces-C 2.3 to 2.7 migration

Hello All 

I am trying to migrate from Xerces-C 2.3.0 to the latest version Xerces-C 2.7.0. However when I compile, I get the following errors. Am I missing something? In my app, I have included these files,
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/sax2/SAX2XMLReader.hpp>
#include <xercesc/sax2/XMLReaderFactory.hpp>
#include <xercesc/sax2/DefaultHandler.hpp>
#include <xercesc/framework/URLInputSource.hpp>

Any clues would be appreciated.

Many Thanks
Jan


--------------------------------------------------------------------------------

Errors:

--------------------Configuration: AppBrowser - Win32 Release--------------------
Compiling...
AppBrowserCtl.cpp
C:\XMLparser\include\xercesc/validators/schema/PSVIDefs.hpp(33) : error C2059: syntax error : 'string'
C:\XMLparser\include\xercesc/validators/schema/PSVIDefs.hpp(35) : error C2143: syntax error : missing ';' before '}'
C:\XMLparser\include\xercesc/validators/schema/PSVIDefs.hpp(35) : error C2238: unexpected token(s) preceding ';'
C:\XMLparser\include\xercesc/validators/schema/PSVIDefs.hpp(50) : error C2143: syntax error : missing ';' before '}'
C:\XMLparser\include\xercesc/validators/schema/PSVIDefs.hpp(50) : error C2143: syntax error : missing ';' before '}'
C:\XMLparser\include\xercesc/validators/schema/PSVIDefs.hpp(50) : error C2143: syntax error : missing ';' before '}'
C:\XMLparser\include\xercesc/validators/schema/SchemaAttDef.hpp(30) : error C2143: syntax error : missing ';' before '{'
C:\XMLparser\include\xercesc/validators/schema/SchemaAttDef.hpp(30) : error C2447: missing function header (old-style formal list?)
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(83) : error C2143: syntax error : missing ';' before '*'
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(83) : error C2501: 'getAttWildCard' : missing storage-class or type specifiers
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(84) : error C2143: syntax error : missing ';' before '*'
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(84) : error C2501: 'SchemaAttDef' : missing storage-class or type specifiers
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(84) : error C2501: 'getAttWildCard' : missing storage-class or type specifiers
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(85) : error C2143: syntax error : missing ';' before '*'
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(85) : error C2734: 'SchemaAttDef' : const object must be initialized if not extern
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(85) : error C2086: 'SchemaAttDef' : redefinition
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(86) : error C2501: 'getAttDef' : missing storage-class or type specifiers
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(87) : error C2143: syntax error : missing ';' before '*'
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(87) : error C2501: 'SchemaAttDef' : missing storage-class or type specifiers
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(88) : error C2501: 'getAttDef' : missing storage-class or type specifiers
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(121) : error C2061: syntax error : identifier 'SchemaAttDef'
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(122) : error C2061: syntax error : identifier 'SchemaAttDef'
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(219) : error C2143: syntax error : missing ';' before '*'
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(219) : error C2501: 'SchemaAttDef' : missing storage-class or type specifiers
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(219) : error C2501: 'fAttWildCard' : missing storage-class or type specifiers
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(222) : error C2327: 'ComplexTypeInfo::SchemaAttDef' : member from enclosing class is not a type name, static, or enumerator
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(222) : error C2065: 'SchemaAttDef' : undeclared identifier
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(318) : error C2143: syntax error : missing ';' before '*'
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(318) : error C2433: 'SchemaAttDef' : 'inline' not permitted on data declarations
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(318) : error C2734: 'SchemaAttDef' : const object must be initialized if not extern
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(318) : error C2501: 'getAttWildCard' : missing storage-class or type specifiers
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(318) : warning C4273: 'getAttWildCard' : inconsistent dll linkage.  dllexport assumed.
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(320) : error C2065: 'fAttWildCard' : undeclared identifier
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(323) : error C2143: syntax error : missing ';' before '*'
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(323) : error C2433: 'SchemaAttDef' : 'inline' not permitted on data declarations
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(323) : error C2501: 'SchemaAttDef' : missing storage-class or type specifiers
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(323) : error C2373: 'SchemaAttDef' : redefinition; different type modifiers
        C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(318) : see declaration of 'SchemaAttDef'
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(323) : error C2501: 'getAttWildCard' : missing storage-class or type specifiers
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(323) : warning C4273: 'getAttWildCard' : inconsistent dll linkage.  dllexport assumed.
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(328) : error C2143: syntax error : missing ';' before '*'
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(328) : error C2433: 'SchemaAttDef' : 'inline' not permitted on data declarations
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(328) : error C2734: 'SchemaAttDef' : const object must be initialized if not extern
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(328) : error C2086: 'SchemaAttDef' : redefinition
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(329) : error C2501: 'getAttDef' : missing storage-class or type specifiers
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(329) : warning C4273: 'getAttDef' : inconsistent dll linkage.  dllexport assumed.
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(331) : error C2663: 'get' : 2 overloads have no legal conversion for 'this' pointer
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(334) : error C2143: syntax error : missing ';' before '*'
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(334) : error C2433: 'SchemaAttDef' : 'inline' not permitted on data declarations
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(334) : error C2501: 'SchemaAttDef' : missing storage-class or type specifiers
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(334) : error C2373: 'SchemaAttDef' : redefinition; different type modifiers
        C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(318) : see declaration of 'SchemaAttDef'
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(336) : error C2501: 'getAttDef' : missing storage-class or type specifiers
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(336) : warning C4273: 'getAttDef' : inconsistent dll linkage.  dllexport assumed.
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(337) : error C2663: 'get' : 2 overloads have no legal conversion for 'this' pointer
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(501) : error C2059: syntax error : 'const'
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(501) : error C2143: syntax error : missing ';' before '{'
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(501) : error C2447: missing function header (old-style formal list?)
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(535) : error C2662: 'isEmpty' : cannot convert 'this' pointer from 'class xercesc_2_7::RefHash2KeysTableOf' to 'const class xercesc_2_7::RefHash2KeysTabl
eOf<TVal> &'
        Reason: cannot convert from 'class xercesc_2_7::RefHash2KeysTableOf' to 'const class xercesc_2_7::RefHash2KeysTableOf<TVal>'
        Conversion requires a second user-defined-conversion operator or constructor
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(540) : error C2654: 'SchemaAttDef' : attempt to access member outside a member function
        C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(83) : see declaration of 'SchemaAttDef'
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(540) : error C2955: 'RefHash2KeysTableOfEnumerator' : use of class template requires template argument list
        C:\XMLparser\include\xercesc/util/RefHash2KeysTableOf.hpp(254) : see declaration of 'RefHash2KeysTableOfEnumerator'
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(540) : error C2514: 'xercesc_2_7::RefHash2KeysTableOfEnumerator' : class has no constructors
        C:\XMLparser\include\xercesc/util/RefHash2KeysTableOf.hpp(254) : see declaration of 'RefHash2KeysTableOfEnumerator'
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(540) : error C2262: 'enumDefs' : cannot be destroyed
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(542) : error C2662: 'hasMoreElements' : cannot convert 'this' pointer from 'class xercesc_2_7::RefHash2KeysTableOfEnumerator' to 'const class xercesc_2_7
::RefHash2KeysTableOfEnumerator<TVal> &'
        Reason: cannot convert from 'class xercesc_2_7::RefHash2KeysTableOfEnumerator' to 'const class xercesc_2_7::RefHash2KeysTableOfEnumerator<TVal>'
        Conversion requires a second user-defined-conversion operator or constructor
C:\XMLparser\include\xercesc/validators/schema/ComplexTypeInfo.hpp(542) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Error executing cl.exe.

AppBrowserCtl.obj - 59 error(s), 4 warning(s)