Skip to content

-std=c++20 #182

Answered by userdocs
evilfrog13 asked this question in Q&A
Dec 2, 2021 · 1 comments · 2 replies
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: 1 comment 2 replies

Comment options

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

@nsh07
Comment options

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