判断交叉编译工具是否支持C++20的标准

写个任意的测试程序hello_world

执行

arm-linux-gnueabihf-g++  -std=c++14 main.cpp
arm-linux-gnueabihf-g++  -std=c++17 main.cpp
arm-linux-gnueabihf-g++  -std=c++20 main.cpp


没报错则代表支持,报错则不支持.
在这里插入图片描述

posted @ 2024-01-16 11:05  昊月光华  阅读(25)  评论(0)    收藏  举报  来源