On Fri, Oct 30, 2009 at 10:36 AM, PaulH <paul.h...@gmail.com> wrote:

>
> OPTIONAL is already defined in windef.h. At the top of
> extension_set.cc, add this:
>
> #ifdef UNDER_CE
> #ifdef OPTIONAL
> #undef OPTIONAL
> #endif
> #endif
>

Or you can just simply write:

  #undef OPTIONAL

since it's going to be a problem on any platform if it is defined.  I think
you may have to put this at the top of the header file, not the .cc file.


>
> On Oct 30, 3:53 am, menuthaur <menuth...@gmx.de> wrote:
> > Hello,
> >
> > I try to compile protobuf for Windows CE (ARM4I) and I stumbled upon a
> > compilation error
> > "error C2059 : Syntax error : ')'" in extension_set.cc.
> >
> > After some research i found out that the define OPTIONAL is not
> > existent for windows ce.
> >
> > Can somebody help me with this define?
> > Can someone explain me why this define is used?
> > Is there a possible workaround?
> >
> > Regards,
> >
> > menuthaur
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to