Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1572

Compiling problem because of Assert method.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Won't Fix
    • 2.5.0
    • None
    • Miscellaneous
    • None
    • HP-UX B.11.23 U ia64
      aCC: HP aC++/ANSI C B3910B A.06.00 [Aug 25 2004]

    Description

      Hi,
      I could build my application with xercesc 1.7.0.
      When trying to build the same code using xercesc 2.5.0, I got the following errors:

      "/usr/opt/temip_3pps/xerces/2.5.0/include/xercesc/internal/XSerializeEngine.hpp", line 556: warning #2055-D:
      too many arguments in macro invocation
      , const XMLExcepts::Codes toThrow) const;
      ^
      "/usr/opt/temip_3pps/xerces/2.5.0/include/xercesc/internal/XSerializeEngine.hpp", line 555: error #2040:
      expected an identifier
      inline void Assert(bool toEval
      ^
      "/usr/opt/temip_3pps/xerces/2.5.0/include/xercesc/internal/XSerializeEngine.hpp", line 555: error #2079:
      expected a type specifier
      inline void Assert(bool toEval
      ^
      "/usr/opt/temip_3pps/xerces/2.5.0/include/xercesc/internal/XSerializeEngine.hpp", line 555: error #2065:
      expected a ";"
      inline void Assert(bool toEval
      ^
      "/usr/opt/temip_3pps/xerces/2.5.0/include/xercesc/internal/XSerializeEngine.hpp", line 671: warning #2055-D:
      too many arguments in macro invocation
      Assert(isStoring(), XMLExcepts::XSer_Storing_Violation);
      ^
      "/usr/opt/temip_3pps/xerces/2.5.0/include/xercesc/internal/XSerializeEngine.hpp", line 676: warning #2055-D:
      too many arguments in macro invocation
      Assert(isLoading(), XMLExcepts::XSer_Loading_Violation);
      ^
      "/usr/opt/temip_3pps/xerces/2.5.0/include/xercesc/internal/XSerializeEngine.hpp", line 682: warning #2055-D:
      too many arguments in macro invocation
      , const XMLExcepts::Codes toThrow) const
      ^
      "/usr/opt/temip_3pps/xerces/2.5.0/include/xercesc/internal/XSerializeEngine.hpp", line 681: error #2040:
      expected an identifier
      inline void XSerializeEngine::Assert(bool toEval
      ^
      "/usr/opt/temip_3pps/xerces/2.5.0/include/xercesc/internal/XSerializeEngine.hpp", line 681: error #2325:
      inline specifier allowed on function declarations only
      inline void XSerializeEngine::Assert(bool toEval
      ^
      "/usr/opt/temip_3pps/xerces/2.5.0/include/xercesc/internal/XSerializeEngine.hpp", line 681: error #2065:
      expected a ";"
      inline void XSerializeEngine::Assert(bool toEval
      ^
      "/usr/opt/temip_3pps/xerces/2.5.0/include/xercesc/internal/XSerializeEngine.hpp", line 747: warning #2012-D:
      parsing restarts here after previous syntax error
      XSerializeEngine::XSerializedObjectId_t fData;
      ^
      "/usr/opt/temip_3pps/xerces/2.5.0/include/xercesc/internal/XSerializeEngine.hpp", line 752: error #2169:
      expected a declaration
      XERCES_CPP_NAMESPACE_END
      ^
      ... and a lot more.
      Anybody got an idea ?

      Thanks a lot for your help in advance,

      Nicolas H.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nico2022 nicolss hirel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: