[Interest] -std=gnu++11 compile error
Thiago Macieira
thiago.macieira at intel.com
Tue Jun 28 18:35:20 CEST 2016
On terça-feira, 28 de junho de 2016 12:11:51 PDT Mike Santerre wrote:
> I'm trying to compile a Qt 5.7 app on CentOS 6.8 and getting the following
> error.
>
> cc1plus: error: unrecognized command line option "-std=gnu++11"
>
> gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC)
>
> Is this gcc version too old to support gnu++11?
Yes. Please upgrade.
> If that's the case, are there options for compiling without updating gcc?
GCC >= 4.7, but the newer the better.
> Is it possible to tell Qt Creator to not use that command line option?
Yes, you can hack the Qt source code and replace the place where it uses that
option with the one your compiler understands.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list