Skip to content
Discussion options

You must be logged in to vote

edit: you probably need to use gcc 10 anyway as that is the minimum required to build btop

I believe you have to use either specify this -std=c++2a with gcc 9 or earlier (the default in ubuntu focal) or use gcc 10

From google:

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

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@evilfrog13
Comment options

@nsh07
Comment options

@anmac1789
Comment options

Answer selected by aristocratos
Comment options

You must be logged in to vote
1 reply
@anmac1789
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants