Android NDK 的最新 C++11 功能 [英] Latest C++11 features with Android NDK

查看:20
本文介绍了Android NDK 的最新 C++11 功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 C++11 线程工具与 Android NDK 一起使用,但不确定如何使其使用最新的编译器.

I am trying to use C++11 threading facilities with Android NDK, but not sure how to make it use the latest compilers.

我有 Clang 3.2 并且可以构建 iOS 应用程序.我想知道是否有办法用 Android NDK 做到这一点?

I have Clang 3.2 and can build iOS apps. I wonder if there is a way to do it with Android NDK?

如果不是,那我应该如何使用 gcc 4.8 构建?

If not, then how should I build with gcc 4.8?

推荐答案

NDK 修订版 10 具有 Clang 3.6 工具链.使用它:

NDK revision 10 has the Clang 3.6 toolchain. Use it:

NDK_TOOLCHAIN_VERSION := clang3.6

或使用最新的可用 Clang 工具链

or use the latest available Clang toolchain

NDK_TOOLCHAIN_VERSION := clang

这篇关于Android NDK 的最新 C++11 功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆