-std=c++20 #182
-
|
hi im new to all this im on ubuntu 20.04 LTS and wen i try the command MAKE i get |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
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 From google: C++20 features are available since GCC 8. To enable C++20 support, add the command-line parameter
For G++ 9 and earlier use
Or, to enable GNU extensions in addition to C++20 features, add
|
Beta Was this translation helpful? Give feedback.
-
|
i was off this project for a while and still dont know what i am doing will make some change when i canOn Oct 28, 2025, at 2:36 PM, anmac1789 ***@***.***> wrote:
How to install gcc10 with Ubuntu 20.04 or how do we type the command -std=c++20 OR -std=c++2a
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
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++2awith gcc 9 or earlier (the default in ubuntu focal) or use gcc 10From google:
C++20 features are available since GCC 8.
To enable C++20 support, add the command-line parameter
-std=c++20For G++ 9 and earlier use
-std=c++2aOr, to enable GNU extensions in addition to C++20 features, add
-std=gnu++20