 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Mon Apr 23, 2007 10:32 pm Post subject: Name collision with 'nil' |
|
|
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
|
Posted: Wed Apr 25, 2007 8:11 pm Post subject: Re: Name collision with 'nil' |
|
|
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 |
|
 |
|
|
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
|
|