Hi,
I get the following errors as well with the library which blocks me from a
successful compilation
"./../../../include/xercesc/internal/XSerializeEngine.hpp", line 654: error
#2040:
expected an identifier
inline void Assert(bool toEval
^
"./../../../include/xercesc/internal/XSerializeEngine.hpp", line 654: error
#2079:
expected a type specifier
inline void Assert(bool toEval
^
"./../../../include/xercesc/internal/XSerializeEngine.hpp", line 654: error
#2065:
expected a ";"
inline void Assert(bool toEval
^
"./../../../include/xercesc/internal/XSerializeEngine.hpp", line 775: error
#2040:
expected an identifier
inline void XSerializeEngine::Assert(bool toEval
^
"./../../../include/xercesc/internal/XSerializeEngine.hpp", line 775: error
#2325:
inline specifier allowed on function declarations only
inline void XSerializeEngine::Assert(bool toEval
^
"./../../../include/xercesc/internal/XSerializeEngine.hpp", line 775: error
#2065:
expected a ";"
inline void XSerializeEngine::Assert(bool toEval
^
"./../../../include/xercesc/internal/XSerializeEngine.hpp", line 869:
warning #2012-D:
parsing restarts here after previous syntax error
XSerializeEngine::XSerializedObjectId_t fData;
^
"./../../../include/xercesc/internal/XSerializeEngine.hpp", line 874: error
#2169:
expected a declaration
XERCES_CPP_NAMESPACE_END
^
"./../../../include/xercesc/internal/XProtoType.hpp", line 72: warning
#2012-D:
parsing restarts here after previous syntax error
XMLByte* fClassName;
^
"./../../../include/xercesc/internal/XProtoType.hpp", line 76: error #2169:
expected a declaration
};
^
"./../../../include/xercesc/internal/XProtoType.hpp", line 108: error #2169:
expected a declaration
XERCES_CPP_NAMESPACE_END
^
"./../../../include/xercesc/internal/XSerializable.hpp", line 63: warning
#2012-D:
parsing restarts here after previous syntax error
XSerializable(){} ;
^
"./../../../include/xercesc/internal/XSerializable.hpp", line 65: error
#2169:
expected a declaration
private:
^
"./../../../include/xercesc/internal/XSerializable.hpp", line 69: warning
#2012-D:
parsing restarts here after previous syntax error
XSerializable(const XSerializable& );
^
"./../../../include/xercesc/internal/XSerializable.hpp", line 70: error
#2341:
"operator=" must be a member function
XSerializable& operator=(const XSerializable&);
^
Can you please suggest a solution other than editing these files to correct
the errors?
Thanks in Advance
...
On 5/8/08, Minimol M <[EMAIL PROTECTED]> wrote:
>
> Thanks Dave,
>
> Including the +W option worked. But do the new versions of the library (>
> 2.6.0) take care of /correct these annoying warnings?
>
> Regards
>
>
> On 5/7/08, David Bertoni <[EMAIL PROTECTED]> wrote:
> >
> > Minimol M wrote:
> >
> > > Hi,
> > >
> > > I am using xercesc 2.6.0 in hpux -ia64. While compiling using the
> > > header
> > > files #include <xercesc/sax2/XMLReaderFactory.hpp> and #include
> > > <xercesc/sax2/SAX2XMLReader.hpp>
> > > I get these warnings.
> > >
> > >
> > > "./../../../include/xercesc/framework/XMLGrammarPool.hpp", line 266:
> > > warning
> > > #2815-D:
> > > type qualifier on return type is meaningless
> > > inline MemoryManager* const getMemoryManager()
> > >
> > > The Xerces-C source code is full of these little annoyances. You can
> > ignore the warning.
> > ^
> >
> > >
> > > "./../../../include/xercesc/sax2/XMLReaderFactory.hpp", line 106:
> > > warning
> > > #2111-D:
> > > statement is unreachable
> > > return 0;
> > > ^
> > >
> > This is left over from the days when compilers would report an error if
> > a function didn't have a return statement, even if a throw statement meant
> > the normal return path could never be taken. You can ignore this warning
> > too.
> >
> > Are these issues with the library? Anybody has a solution to get rid of
> > > these warnings?
> > >
> > They are not issues. You could use the HP compiler option to disable
> > those particular warnings, which would be "+W2111,2815".
> >
> > Otherwise, you would have to modify the Xerces-C sources, which is not
> > very efficient or maintainable.
> >
> > Dave
> >
>
>