qianjigui 发表于 2013-1-26 12:28:44

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}
页: [1]
查看完整版本: Android 开发中C++链接C库