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库与C++混合编程
本文介绍如何在C++代码中正确链接C语言库。通过使用extern 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
}

被折叠的 条评论
为什么被折叠?