[Interest] -std=gnu++11 compile error

Konstantin Tokarev annulen at yandex.ru
Tue Jun 28 18:15:42 CEST 2016



28.06.2016, 19:12, "Mike Santerre" <mike.santerre at gmail.com>:
> 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. It supports gnu++0x, but in order to use Qt >= 5.7 you need gcc >= 4.7.

>
> If that's the case, are there options for compiling without updating gcc? 

Stay with Qt 5.6.x

-- 
Regards,
Konstantin



More information about the Interest mailing list