Here some errors that I got, when compiled xerces with VC5 compiler.

--------------------------------
F:\code\Xerces\src\ibmxml\xerces\src\util/regx/Op.hpp(324) : error C2561:
'getSize' : function must return a value
F:\code\Xerces\src\ibmxml\xerces\src\util/regx/Op.hpp(329) : error C2561:
'getData' : function must return a value
F:\code\Xerces\src\ibmxml\xerces\src\util/regx/Op.hpp(334) : error C2561:
'getData2' : function must return a value
F:\code\Xerces\src\ibmxml\xerces\src\util/regx/Op.hpp(339) : error C2561:
'getRefNo' : function must return a value
F:\code\Xerces\src\ibmxml\xerces\src\util/regx/Op.hpp(344) : error C2561:
'elementAt' : function must return a value
F:\code\Xerces\src\ibmxml\xerces\src\util/regx/Op.hpp(349) : error C2561:
'getChild' : function must return a value
F:\code\Xerces\src\ibmxml\xerces\src\util/regx/Op.hpp(354) : error C2561:
'getConditionFlow' : function must return a value
F:\code\Xerces\src\ibmxml\xerces\src\util/regx/Op.hpp(359) : error C2561:
'getYesFlow' : function must return a value
F:\code\Xerces\src\ibmxml\xerces\src\util/regx/Op.hpp(364) : error C2561:
'getNoFlow' : function must return a value
F:\code\Xerces\src\ibmxml\xerces\src\util/regx/Op.hpp(369) : error C2561:
'getLiteral' : function must return a value
F:\code\Xerces\src\ibmxml\xerces\src\util/regx/Op.hpp(374) : error C2561:
'getToken' : function must return a value

I understand that some inline functions are just dummy stubs, but can you
add also the dummy return value
to the end of them, like this:

inline int Op::getSize() const {
    ThrowXML(RuntimeException, XMLExcepts::Regex_NotSupported);
    return 0
}
-------------------------------------------
Same for process* functions in ParserForXMLSchema.cpp
-------------------------------------------
IDNodeIteratorImpl.cpp
F:\code\Xerces\src\ibmxml\xerces\src\idom\IDNodeIteratorImpl.cpp(71) : fatal
error C1083: Cannot open include file: 'NodeIteratorImpl.hpp': No such file
or directory
IDRangeImpl.cpp
F:\code\Xerces\src\ibmxml\xerces\src\idom\IDRangeImpl.cpp(62) : fatal error
C1083: Cannot open include file: 'NodeImpl.hpp': No such file or directory
IDTreeWalkerImpl.cpp
F:\code\Xerces\src\ibmxml\xerces\src\idom\IDTreeWalkerImpl.cpp(67) : fatal
error C1083: Cannot open include file: 'TreeWalkerImpl.hpp': No such file or
directory

I got rid of these by adding the path to
F:\code\Xerces\src\ibmxml\xerces\src\dom in my include environment.
------------------------------------------
VCPPDefs.cpp

F:\code\Xerces\src\ibmxml\xerces\src\util/Compilers/VCPPDefs.hpp(177) :
error C2816: alternative form of 'operator delete' must be a member
F:\code\Xerces\src\ibmxml\xerces\src\util/Compilers/VCPPDefs.hpp(177) :
error C2810: second formal parameter for 'operator delete' must be 'unsigned
int'

Here the code.
class IDOM_Document;
inline void operator delete(void* ptr, IDOM_Document *doc)
{
    return;
}

Here is the error explanation :
Compiler Error C2816
alternative form of 'operator delete' must be a member

The two-parameter form of the operator delete can be redefined only within a
class, structure, or union. Global redefinitions of operator delete are
allowed to have only one parameter.

I just commented that code and it compiled.
----------------------------------------------------------


Peter A. Volchek
Software Engineer
Metis International, Inc.
[EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to