判断交叉编译工具是否支持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


没报错则代表支持,报错则不支持.
判断交叉编译工具是否支持C++20的标准_第1张图片

你可能感兴趣的:(Linux,C++,c++20,linux)