-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: 1 comment 2 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.
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 10From 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