[ 
http://issues.apache.org/jira/browse/XERCESC-1572?page=comments#action_12368466 
] 

nicolss hirel commented on XERCESC-1572:
----------------------------------------

Thanks David for your quick answer.
You are right, I checked and I am using HP Openview TeMIP software which 
defines an Assert macro.
I really have to use this software.
Maybe, xerces namespace mechanism can prevent this kind of conflict from 
happening ?
Do you see a way out of this ?

> Compiling problem because of Assert method.
> -------------------------------------------
>
>          Key: XERCESC-1572
>          URL: http://issues.apache.org/jira/browse/XERCESC-1572
>      Project: Xerces-C++
>         Type: Bug
>   Components: Miscellaneous
>     Versions: 2.5.0
>  Environment: HP-UX B.11.23 U ia64
> aCC: HP aC++/ANSI C B3910B A.06.00 [Aug 25 2004]
>     Reporter: nicolss hirel
>     Priority: Critical

>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to