extension_set.h can not be resolved by xlc + + properly

2009-09-25 Thread alex

hi

when i #include google/protobuf/extension_set.h

the xlc++ always show an error message:

/home/soft/include/google/protobuf/extension_set.h, line 378.10:
1540-0063 (S) The text ( is unexpected.

line 377 to 379
int GetSize() const;
void Free();
int SpaceUsedExcludingSelf() const;

xlc++ v10.1 , aix 5.3

can you give me some suggestions?

thanks
alex

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~--~~~~--~~--~--~---



Re: extension_set.h can not be resolved by xlc + + properly

2009-09-25 Thread Kenton Varda
Maybe your system headers #define Free as a macro?  Try adding #undef Free
before that line.
On Fri, Sep 25, 2009 at 7:25 AM, alex as.von.ch...@gmail.com wrote:


 hi

 when i #include google/protobuf/extension_set.h

 the xlc++ always show an error message:

 /home/soft/include/google/protobuf/extension_set.h, line 378.10:
 1540-0063 (S) The text ( is unexpected.

 line 377 to 379
int GetSize() const;
void Free();
int SpaceUsedExcludingSelf() const;

 xlc++ v10.1 , aix 5.3

 can you give me some suggestions?

 thanks
 alex

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~--~~~~--~~--~--~---



Re: extension_set.h can not be resolved by xlc + + properly

2009-09-25 Thread Henner Zeller

Maybe 'Free' is a macro defined in that compiler environment ? (would
be bad, but these things happen).

What happens if you do an #undef Free in front of that

On Fri, Sep 25, 2009 at 07:25, alex as.von.ch...@gmail.com wrote:

 hi

 when i #include google/protobuf/extension_set.h

 the xlc++ always show an error message:

 /home/soft/include/google/protobuf/extension_set.h, line 378.10:
 1540-0063 (S) The text ( is unexpected.

    int GetSize() const;
#undef Free
    void Free();
    int SpaceUsedExcludingSelf() const;


 xlc++ v10.1 , aix 5.3

 can you give me some suggestions?

 thanks
 alex

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~--~~~~--~~--~--~---



Re: extension_set.h can not be resolved by xlc + + properly

2009-09-25 Thread Kenton Varda
Jinx.  :)

On Fri, Sep 25, 2009 at 10:04 AM, Henner Zeller h.zel...@acm.org wrote:


 Maybe 'Free' is a macro defined in that compiler environment ? (would
 be bad, but these things happen).

 What happens if you do an #undef Free in front of that

 On Fri, Sep 25, 2009 at 07:25, alex as.von.ch...@gmail.com wrote:
 
  hi
 
  when i #include google/protobuf/extension_set.h
 
  the xlc++ always show an error message:
 
  /home/soft/include/google/protobuf/extension_set.h, line 378.10:
  1540-0063 (S) The text ( is unexpected.

 int GetSize() const;
 #undef Free
 void Free();
 int SpaceUsedExcludingSelf() const;

 
  xlc++ v10.1 , aix 5.3
 
  can you give me some suggestions?
 
  thanks
  alex
 
  
 

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~--~~~~--~~--~--~---