Extern C/C++ confusion in ndk - Syntax error Eclipse

旧巷老猫 提交于 2019-12-12 03:38:44

问题


I wish to run a C Code in android for which I am using android ndk. I also need to add some libraries. While building these libraries, I am getting errors because of the extern statements in the header files. Eclipse IDE shows syntax errors. I also unchecked everything at Project-->Properties--> C/C++ Code Analysis.

Similar example is shown here. How to resolve this?

#ifdef __cplusplus
extern "C" {
#endif

来源:https://stackoverflow.com/questions/33078953/extern-c-c-confusion-in-ndk-syntax-error-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!