android-ndk - Android 命名空间的 ndk 构建错误

标签 android-ndk cygwin

我正在使用库存 cygwin 进行 ndk-build,但遇到了类似的错误

C:/Users/374565.NOAM/workspace/UltraSoundJNI/jni/utils/Errors.h:24: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'android'

这一行是:

namespace android{

这发生在多个文件中,我该如何解决这个问题?

最佳答案

您似乎正在尝试将 C++ 代码编译为纯 C。

关于android-ndk - Android 命名空间的 ndk 构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9795629/

相关文章:

windows - 如何设置 PC 和 Mac 以使用 git

bash expr 计算变量(cygwin)

c++ - DIY堆栈保护

android-ndk - Android Studio 1.4,实验性插件,JNI 文件夹的路径?

android-ndk - 使用 Android NDK 构建 Tesseract

windows - 制作。在 cygwin 和 Windows 7(64 位)中

android - 带有 cygwin 的 Windows 7 中的 repo 初始化错误

android - 使用 NativeActivity 在 android NDK 中进行键盘输入

android - Android NDK 代码中的 SIGILL

batch-file - 如何在bash脚本的批处理文件的参数中包含管道字符?