在交叉编译工具后面输入 -std=c版本或者c++版本
如下查看是否支持c++17
正常支持的版本c++11
z@ubuntu:~/Desktop$ arm-openwrt-linux-uclibcgnueabi-g++ -std=c++11
arm-openwrt-linux-uclibcgnueabi-g++: fatal error: no input files
compilation terminated.
只提示 no input files
z@ubuntu:~/Desktop$ arm-openwrt-linux-uclibcgnueabi-g++ -std=c++17
arm-openwrt-linux-uclibcgnueabi-g++: error: unrecognized command line option '-std=c++17'
arm-openwrt-linux-uclibcgnueabi-g++: fatal error: no input files
compilation terminated.
提示 error: unrecognized command line option '-std=c++17’即是不支持
或参考:
c++ - 如何检查 arm-none-linux-gnueabi-g++ 对 C++11 的支持 - IT工具网 (coder.work)