<br>
<div class="gmail_quote">On Thu, Sep 9, 2010 at 8:29 AM, binod pal <span dir="ltr">&lt;<a href="mailto:binod_pal@rediffmail.com">binod_pal@rediffmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><br>Hi,<br><br>I would like to clarify that UserException is not a macro, it is a class. I had tried two options</blockquote>

<div> </div>
<div> </div>
<div>UserException is a macro in INTEGRITY_error.h, at least in the INTEGRITY that I am using (5.0.11 and 5.0.10).</div>
<div> </div>
<div>I suspect this macro is colliding with a class in omniORB (and any other ORB). In my version of INTEGRITY_error.h they have it wrapped in an #ifdef like so:</div>
<div> </div>
<div>/* Unfortunately, ORBExpress defines a class UserException which causes       */<br>/* compilation failures, so this macro/API must be disabled.        */<br>#ifndef ORBEXPRESS<br># define UserException(TheTask, Type) \<br>
 __UserException(TheTask, Type, __FILE__, sizeof(__FILE__), __LINE__)<br>#endif</div>
<div> </div>
<div>You could try #defining ORBEXPRESS or adding another check for omniORB.<br></div>
<div>BN<br></div></div>