I ran into this same issue today and verified that passing the 
-DGOOGLE_PROTOBUF_NO_RTTI compiler flag does fix it. Sorry to revive a 
6-year-old thread but this was the top search result.

Thanks,
Matthew

On Thursday, February 4, 2010 at 7:28:35 PM UTC-8, Evan Jones wrote:
>
> On Feb 4, 2010, at 21:49 , hap 497 wrote:
> > I am getting the following error saying '‘dynamic_cast’ not permitted
> > with -fno-rtti'. Is there a way to configure protobuf not to use
> > dynamic_cast?
> >
> > /usr/local/include/google/protobuf/generated_message_reflection.h:
>
> This header file reads:
>
> // If you need to compile without RTTI, simply #define  
> GOOGLE_PROTOBUF_NO_RTTI.
> // On MSVC, this should be detected automatically.
>
> So add -DGOOGLE_PROTOBUF_NO_RTTI and it should work?
>
> Evan
>
> --
> Evan Jones
> http://evanjones.ca/
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to