Groups | Search | Server Info | Login | Register


Groups > comp.lang.awk > #9791

Re: C++20??? (Was: Preliminary version of new regex matcher for gawk now available)

Date 2024-08-10 15:42 +0200
Subject Re: C++20??? (Was: Preliminary version of new regex matcher for gawk now available)
Newsgroups comp.lang.awk
References <66a21e7e$0$710$14726298@news.sunsite.dk> <v7tf29$2984r$1@dont-email.me> <66a350e9$0$706$14726298@news.sunsite.dk> <v837mh$35u$1@news.xmission.com>
From Luuk <luuk@invalid.lan>
Message-ID <nnd$15de9d74$69aba32d@91e4ec1203dca4f9> (permalink)
Organization KPN B.V.

Show all headers | View raw


On 27-7-2024 18:36, Kenny McCormack wrote:
> 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?
> 

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

Back to comp.lang.awk | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Preliminary version of new regex matcher for gawk now available arnold@skeeve.com (Aharon Robbins) - 2024-07-25 09:44 +0000
  Re: Preliminary version of new regex matcher for gawk now available Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-07-25 14:05 +0200
    Re: Preliminary version of new regex matcher for gawk now available arnold@skeeve.com (Aharon Robbins) - 2024-07-26 07:31 +0000
      C++20??? (Was: Preliminary version of new regex matcher for gawk now available) gazelle@shell.xmission.com (Kenny McCormack) - 2024-07-27 16:36 +0000
        Re: C++20??? (Was: Preliminary version of new regex matcher for gawk now available) Luuk <luuk@invalid.lan> - 2024-08-10 15:42 +0200
          Re: C++20??? (Was: Preliminary version of new regex matcher for gawk now available) gazelle@shell.xmission.com (Kenny McCormack) - 2024-08-10 13:50 +0000
    Re: Preliminary version of new regex matcher for gawk now available Ben Bacarisse <ben@bsb.me.uk> - 2024-07-26 10:57 +0100

csiph-web