[Interest] unrecognised command line option -std=c++11 error for Qt 5.12.7 sources

Ramakanth Kesireddy rama.kesi at gmail.com
Tue Feb 18 17:19:07 CET 2020


Thanks for your mail.
It works fine after upgrading the compiler to gcc 4.8+



On Tue, Feb 18, 2020 at 8:45 PM Kai Köhne <Kai.Koehne at qt.io> wrote:

>
>
> > Betreff: [Interest] unrecognised command line option -std=c++11 error
> for Qt 5.12.7 sources
> >
> > Hi,
> >
> > Am getting the below error while trying to build latest Qt 5.12.7
> sources on ubuntu desktop.
> >
> > Unrecognised command line option std=c++11.
> >
> > GCC version on desktop is gcc 4.6.3.
>
> I suggest you consider upgrading your compiler.
> https://doc.qt.io/qt-5.12/linux.html says the oldest supported gcc
> version is 4.8.
>
> > Can we set -std=c++Ox in the configure line to compile the Qt5.12.7
> sources?
>
> You can adapt QMAKE_CXXFLAGS_CXX11 in mkspecs/g++base.conf.
>
> Anyhow, there's a good chance that you will soon hit the next compiler
> error then ...
>
>
> Kai
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200218/9e528fd8/attachment.html>


More information about the Interest mailing list