Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: AndrewCot on December 13, 2021, 10:17:15 am

Title: Unix V's Windows project file language standard different (c++11 V gnu++11)
Post by: AndrewCot on December 13, 2021, 10:17:15 am
I was just looking at the C::B project files and it seems the standard compiler standard is:
    Unix: "std=c++11"
    Windows x86 & x64: "std=gnu++11"

Does anyone have any ideas why there is a difference when the standard C::B compiler used to build itself is GCC or can post me a link to read as to why there is a difference? It would be nice to be consistent if possible.
Title: Re: Unix V's Windows project file language standard different (c++11 V gnu++11)
Post by: Miguel Gimenez on December 13, 2021, 12:52:44 pm
Looks like GNU extensions are not used at all (Unix compilation would fail). IMHO it is better to use c++11 in all projects.
Title: Re: Unix V's Windows project file language standard different (c++11 V gnu++11)
Post by: ollydbg on December 13, 2021, 01:10:45 pm
I don't see the gnu++ 11 extension feature in our C::B's code base. So, I agree with Miguel Gimenez.