Android下使用c++11的测试

来源:互联网 发布:联想双系统启动ubuntu 编辑:程序博客网 时间:2024/06/07 15:20

引用

Android下使用c++11的测试 - zhangchen_qinyinghua的专栏 - 博客频道 - CSDN.NEThttp://blog.csdn.net/zhangchen_qinyinghua/article/details/10033777

正文

  1. 增加Application.mk文件,内容如下
    NDK_TOOLCHAIN_VERSION:=4.8  APP_STL:=gnustl_static  
  2. 增加Android.mk
    LOCAL_CPPFLAGS:=-std=c++11 -pthread  
    增加支持c++11和多线程。可以自行增加其他参数。