[omniORB] Re: AIX again: AIX4.3, omniORB4, xlC5, scoping problem?

Christof Meerwald cmeerw@web.de
Mon Oct 28 11:12:00 2002


On Sun, 27 Oct 2002 20:00:19 +0100, Rainer Frohnhoefer wrote:
[...]
> "../../../../include/omniORB4/cdrStream.h", line 285.22: 1540-1298 (I)  
> "void operator>>=(_CORBA_LongLong, cdrStream &)" needs to be declared  
> in the containing scope to be found by name lookup.
> "../../../../include/omniORB4/cdrStream.h", line 269.22: 1540-1298 (I)  
> "void operator>>=(_CORBA_ULong, cdrStream &)" needs to be declared in
> 
> [snip, rest of errors similar to above]
> 
>   Having spent too much time with Java, I'm not really into C++. Could  
> it be that a) I hit a problem with scopes in the source code or b)  
> xlC5.0 is buggy in this regard or c) I'm doing something fundamentally  
> wrong?

AFAICT, xlC5.0 is buggy in this regard.
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,990,00.html
explains why the code should work.

As a workaround you could try moving the operator definitions outside of the
class.


bye, Christof

-- 
http://cmeerw.org                                 JID: cmeerw@jabber.at
mailto cmeerw at web.de