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

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

问题描述

我想用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.

我有锵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有锵3.6工具链。使用它:

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

NDK_TOOLCHAIN_VERSION := clang3.6

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

or use the latest available Clang toolchain

NDK_TOOLCHAIN_VERSION := clang

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

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