AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Name collision with 'nil'

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and CORBA
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Mon Apr 23, 2007 10:32 pm    Post subject: Name collision with 'nil' Reply with quote



ACE+TAO-1.5a
gcc3.4.4
linux

I'm trying to compile an app which pulls in some TAO code. However, I
get lots of name collisions on methods called 'nil' in TAO, e.g. the
following error is one of thousands just like it:

<blah blah>/ACE_wrappers/TAO/tao/Objref_VarOut_T.cpp:12: error:
expected unqualified-id before numeric constant

Here's the code it refers to:

10: template <typename T>
11: TAO_Objref_Var_T<T>::TAO_Objref_Var_T (void)
12: : ptr_ (TAO::Objref_Traits<T>::nil ())
13: {
14: }

nil must be a #define'd constant somewhere or similar. Anybody know
where this collision is coming from and how this may be worked around?

Thanks,
Adam
Back to top
Guest






PostPosted: Wed Apr 25, 2007 8:11 pm    Post subject: Re: Name collision with 'nil' Reply with quote



Resolved this issue by changing #define nil 0 in local library code to
something else.

On 23 Apr, 18:32, a...@hisoffice.com wrote:
Quote:
ACE+TAO-1.5a
gcc3.4.4
linux

I'm trying to compile an app which pulls in some TAO code. However, I
get lots of name collisions on methods called 'nil' in TAO, e.g. the
following error is one of thousands just like it:

blah blah>/ACE_wrappers/TAO/tao/Objref_VarOut_T.cpp:12: error:
expected unqualified-id before numeric constant

Here's the code it refers to:

10: template <typename T
11: TAO_Objref_Var_T<T>::TAO_Objref_Var_T (void)
12: : ptr_ (TAO::Objref_Traits<T>::nil ())
13: {
14: }

nil must be a #define'd constant somewhere or similar. Anybody know
where this collision is coming from and how this may be worked around?

Thanks,
Adam
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and CORBA All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.