from: https://stackoverflow.com/a/68545455/724039
C++20 features are available since GCC 8.
To enable C++20 support, add the command-line parameter
-std=c++20
For G++ 9 and earlier use
-std=c++2a
Or, to enable GNU extensions in addition to C++20 features, add
-std=gnu++20
In article <66a350e9$0$706$14726298@news.sunsite.dk>,
Aharon Robbins <arnold@skeeve.com> wrote:
...
My system complains about -std=c++20 so I cannot test it. (I think
I'll wait for a native C release.)
That will be a while. It's not hard to build current GCC from scratch
on a Linux system.
I doubt that. I wouldn't have the first clue about how to do it, and I'm certainly no Linux newbie.
Maybe it (getting/building GCC) should be part of your "bootstrap" script?
Also, is there an easy way to find out if your current GCC is "good enough" ?
The system I am typing this on says it has GCC 9.4? Will that work?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 498 |
Nodes: | 16 (0 / 16) |
Uptime: | 68:18:26 |
Calls: | 9,814 |
Calls today: | 2 |
Files: | 13,755 |
Messages: | 6,189,353 |