You might be able to figure out a mutually acceptable flag from (say)....there's lots of duplicate flags.
I may have a shortcut to answering the above. I've been updating my QT build to use clang 18.1.6 and in "CMakeLists.txt" this is what ends up passed to 'clang++' for each setting....and it appears g++ 14.1.0 is also happy with them. Ditto g++ 12.2.0 on rpi5 bookworm though I only did "hello c++ world" there.
Code:
gcc -v --help 2>/dev/null | egrep "\-std="
I may have a shortcut to answering the above. I've been updating my QT build to use clang 18.1.6 and in "CMakeLists.txt" this is what ends up passed to 'clang++' for each setting..
Code:
set(CMAKE_CXX_STANDARD 17) #-std=gnu++17set(CMAKE_CXX_STANDARD 23) #-std=gnu++2b
Statistics: Posted by swampdog — Wed Jul 17, 2024 5:56 pm