我尝试使用 arm-linux-gnueabihf-g++ 编译器(来自 g++-arm-linux-gnueabihf 包)来编译带有 lambda 表达式的简单程序,并使用 -std=c++0x 开关。有用。有人有使用此编译器使用 C++0x 功能的经验吗?我想知道,这种支持是否可靠且使用安全。
软件包来自 Ubuntu 存储库,操作系统已更新(12.04 32 位)。版本:arm-linux-gnueabihf-g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
最佳答案
使用 --version
标志获取 GCC 版本。然后,咨询C++-11 feature matrix查看您可以在该特定版本上使用哪些功能。
关于c++ - arm-linux-gnueabihf-g++ 是否具有可靠的 C++0x 支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13362469/