ndk, how to compile c++ and not just c

11 views
Skip to first unread message

Jairo Supelano

unread,
Jul 11, 2022, 11:34:07 AMJul 11
to android-ndk
Hi, currently using Chipmunk, I downloaded an example and the example compiles and runs fine, but when I try to modify it by adding c++ classes I get these errors:

unknown type name class, did you mean jclass?
and
expected ; after top level declarator (meaning the class name)

How do I make it recognize c++ and not just c?

tnx

enh

unread,
Jul 11, 2022, 11:36:35 AMJul 11
to android-ndk
C++ source needs to be in a .cpp file instead of a .c file.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/3f5164d2-a9ab-41f2-bdea-f51f3b36ec64n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages