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

Unix V's Windows project file language standard different (c++11 V gnu++11)

Started by AndrewCot, December 13, 2021, 10:17:15 AM

Previous topic - Next topic

AndrewCot

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.

Miguel Gimenez

Looks like GNU extensions are not used at all (Unix compilation would fail). IMHO it is better to use c++11 in all projects.

ollydbg

I don't see the gnu++ 11 extension feature in our C::B's code base. So, I agree with Miguel Gimenez.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.