User forums > Help

Why don't any recent C++ versions appear in the compiler settings?

<< < (2/3) > >>

Miguel Gimenez:
Thank you, Tim.

@logicalwillow, can you test these two commands in the Linux machine?

--- Code: ---gcc -dumpversion
gcc -dumpfullversion

--- End code ---


Miguel Gimenez:
The problem with 20.03 and gcc11 is using grep to detect version, it worked well until gcc10 but not now. The current code uses proper version comparation.

In any case, the output of the commands above is still useful.

logicalwillow:

--- Quote from: AndrewCot on January 01, 2022, 06:47:17 am ---C::B 20.03 has the option for GCC "-std=c17".

If you want C++20 standard you have two options:
1) Download and use the nightly build as it includes the options included in 2) below.
2) Add either of the following in the "Other compiler options tab":
    -std=c++20
    -std=gnu++20
    -std=c++2a
    -std=gnu++2a

But before using these make sure you read the GNU GCC Standards support for the version of GCC you are using as they may not support all of the C++20 or even the C++17 standards depending on the version you are have.

If you want to use eh GNU C++23 standard then lookup the GNU GCC Stanards support for what the compiler option is and how compatible the version you have is.

--- End quote ---

Thanks, I'll run those and let you know what happened. I can't use any nightly builds because I couldn't find any for Linux. Just Windows. Do you know why almost no C++ options showed up in the compiler menu?

--- Quote from: Miguel Gimenez on January 01, 2022, 11:34:46 am ---Thank you, Tim.

@logicalwillow, can you test these two commands in the Linux machine?

--- Code: ---gcc -dumpversion
gcc -dumpfullversion

--- End code ---




--- End quote ---
The gcc command doesn't exist, apparently. I also tried replacing "gcc" with "cpp":

--- Code: ---$ cpp -dumpversion
9
$ cpp -dumpfullversion
9.3.0

--- End code ---

Miguel Gimenez:

--- Quote ---Do you know why almost no C++ options showed up in the compiler menu?
--- End quote ---
The problem is described above, basically C::B 20.03 recognizes g++ v11 as g++ v1, so it hides the unsupported modes.

Cpp is the C preprocessor, try g++ instead.

logicalwillow:

--- Quote from: Miguel Gimenez on January 01, 2022, 08:06:37 pm ---
--- Quote ---Do you know why almost no C++ options showed up in the compiler menu?
--- End quote ---
The problem is described above, basically C::B 20.03 recognizes g++ v11 as g++ v1, so it hides the unsupported modes.

Cpp is the C preprocessor, try g++ instead.

--- End quote ---

The g++ command doesn't exist either. Also, if the items don't show up on Linux, why do they show up on Windows?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version