Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4997

C/C++ • Re: How to make ' #pragma GCC diagnostic ignored "-Wpsabi" ' work with g++ ?

$
0
0
You might be able to figure out a mutually acceptable flag from (say)..

Code:

gcc -v --help 2>/dev/null | egrep "\-std="
..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..

Code:

set(CMAKE_CXX_STANDARD 17) #-std=gnu++17set(CMAKE_CXX_STANDARD 23) #-std=gnu++2b
..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.

Statistics: Posted by swampdog — Wed Jul 17, 2024 5:56 pm



Viewing all articles
Browse latest Browse all 4997

Trending Articles