News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Compiler Settings: limited to C++ 14 standard

Started by kakas, April 14, 2024, 07:38:09 AM

Previous topic - Next topic

kakas

I just found out that in the "Compiler Flags" section of the compiler settings, the c++ standard goes up only to C++ 14.
Thought I have latest gnu compilers installed.
It's the same with both nightly build(April 1st 2024) and stable release of CB.

blauzahn

Strange. Nevertheless, you can always add flags (e.g. -std=c++20 or more warnings) in other compiler options.

I use cb under Linux only and have newer standards listed for years.

nenin

Quote from: kakas on April 14, 2024, 07:38:09 AM
I just found out that in the "Compiler Flags" section of the compiler settings, the c++ standard goes up only to C++ 14.
Thought I have latest gnu compilers installed.
It's the same with both nightly build(April 1st 2024) and stable release of CB.
You can directly introduce any options supported by compiler in "Other compiler options". "Compiler Flags" is outdated and missing some important flags like "-march=x86-64-v2" [/b]

kakas

#3
Quote from: nenin on April 14, 2024, 11:47:27 AM
You can directly introduce any options supported by compiler in "Other compiler options". "Compiler Flags" is outdated and missing some important flags like "-march=x86-64-v2" [/b]
oh, I see
I wonder if this should be reported as a bug somewhere :-\

kakas

Quote from: blauzahn on April 14, 2024, 08:13:10 AM
Strange. Nevertheless, you can always add flags (e.g. -std=c++20 or more warnings) in other compiler options.

I use cb under Linux only and have newer standards listed for years.
yea, I just used to ignore flags in tutorials/guides thinking I just have some outdated piece of software.

It might be just a windows thing.

nenin

Quote from: kakas on April 14, 2024, 05:14:55 PM
Quote from: nenin on April 14, 2024, 11:47:27 AM
You can directly introduce any options supported by compiler in "Other compiler options". "Compiler Flags" is outdated and missing some important flags like "-march=x86-64-v2" [/b]
oh, I see
I wonder if this should be reported as a bug somewhere :-\
In nighties I have standard support up to C++ 2020 and C 2017. But there are so many other flags for the the GCC...