Native C++ compilation error

200 views
Skip to first unread message

Geetha

unread,
Feb 21, 2010, 11:49:06 PM2/21/10
to android-ndk
Hi Folks,
When I tried to compile the native c++ code, it showed error as
--- must #include <typeinfo> before using typeid. Can anybody help
me to resolve this problem.

Thanks,
Geetha

Brad LaFountain

unread,
Feb 22, 2010, 12:42:56 AM2/22/10
to andro...@googlegroups.com
The ndk has "A Minimal set of headers for C++ support".

If you search the group you can see a lot of people who are using STLport for std and someone has gotten c++ exceptions and RTTI working.



--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.


KKK

unread,
Feb 22, 2010, 1:04:14 AM2/22/10
to android-ndk
i think it is not going to work with 'typeid'. you compile the code
with -fno-rtti explicitly.
you cannot use typeid with -fno-rtti.

Thanks,
KKK

Reply all
Reply to author
Forward
0 new messages