[Interest] [Mingw-w64-public] Compiling Qt (4 or 5) with "-std=c++11"
Thiago Macieira
thiago.macieira at intel.com
Thu Mar 21 22:07:54 CET 2013
On quinta-feira, 21 de março de 2013 16.52.29, K. Frank wrote:
> Hello Lists!
>
> Should I expect to be able to build Qt with "-std=c++11" using mingw-w64?
No. The Windows headers that are shipped with MinGW aren't standards-
compliant. You need to compile with -std=gnu++11.
Qt automatically switches to that mode in the modules that require it.
> As I understand it, using "-std=c++11" causes abi breakage, so to do this, I
> will have to recompile the various libraries I use.
Not with Qt. Qt has the very same ABI, whether you compile it with C++11 or
C++98.
> Has anyone built Qt with either gcc 4.7 or 4.8 with "-std=c++11" activated?
I know someone has, since there have been fixes for MinGW and C++11 mode coming
in.
I've been using C++11 and C++0x before that for a couple of years on Linux.
Since GCC 4.4.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130321/29e5ec1f/attachment.sig>
More information about the Interest
mailing list