GCC is no longer supported - C++17 - Android Studio

后端 未结 1 504
陌清茗
陌清茗 2021-01-06 18:22

I need to use C++17 compliant source files in my Android project. I added my .cpp files to the src/main/cpp folder.

After the

相关标签:
1条回答
  • 2021-01-06 19:00

    For Android NDK, llvm/Clang became the default toolchain since r13b and gcc was removed since r18b.

    You need to remove '-DANDROID_TOOLCHAIN=gcc' and let the build system to select clang by default.

    Also, cross check ndk revision history and --gcc-toolchain changes and clang migration from gcc.

    0 讨论(0)
提交回复
热议问题