Android Ndk CMakeLists 开发常见的错误

错误 1error This file requires compiler and library support for the ISO C++ 2011 standard 错误解决方案:在 CMakeLists 文件中添加  SET(CMAKE_CXX_FLAGS "-std=c++11 -O3")

 错误 2'asm/types.h' file not found解决方案:在 CMakeLists 文件中添加  set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_CXX_FLAGS}")

文章已同步到 个人网站

你可能感兴趣的:(Android Ndk CMakeLists 开发常见的错误)