NDK构建与Android命名空间中的错误 [英] ndk build error with android namespace
本文介绍了NDK构建与Android命名空间中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的cygwin的股票为NDK的构建,并即时得到这样的错误
I'm using stock cygwin for ndk-build and im getting errors like
C:/Users/374565.NOAM/workspace/UltraSoundJNI/jni/utils/Errors.h:24:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'android'
这行是:
namespace android{
这发生在多个文件,我怎么解决这个问题?
this happens in multiple files, how do i fix this?
推荐答案
看来你试图编译C ++ code作为纯粹的C
It seems that you are trying to compile C++ code as pure C.
这篇关于NDK构建与Android命名空间中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文