← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] Enable C++11

 

Le 10/03/2016 08:30, Simon Richter a écrit :
> 
> This enables C++11 support, if either CMake is sufficiently new to have
> this feature built in, or the compiler is supported by the workaround code
> (gcc or clang).
> ---
>  CMakeLists.txt | 23 +++++++++++++++++++++++
>  1 file changed, 23 insertions(+)

After a few tests:

I can compile Kicad on W7 32 bits + msys2 and Kubuntu 14.04 LTS with option
-std=gnu++11
and on W7 32 bits (on Kubuntu the compiler version is too old)
-std=gnu++14

but on W7 32 bits the option
-std=c++11
does not work (compil errors)

Therefore, with gcc:
-std=gnu++11 is OK
-std=c++11 is not acceptable

(This is not the first time i have issues with option -std=c++11 or
-std=c++14 and no issue with -std=gnu++11 or -std=gnu++14)


-- 
Jean-Pierre CHARRAS


Follow ups

References