Android 开发中C++链接C库

https://groups.google.com/forum/?fromgroups#!topic/android-ndk/UT1boSyJgdA

 

If you linked C library in C++ code, use extern "C"  { } to surround the #include directives.  i.e.
extern "C" {
 #include "a.h"   //a.h is the head file for the C library
}

 

你可能感兴趣的:(c,android)