[Interest] [Mingw-w64-public] Compiling Qt (4 or 5) with "-std=c++11"

Christian Quast christian.quast at cquast-it.de
Thu Mar 21 22:37:01 CET 2013


Hi...

On Thursday 21 March 2013 22:07:54 Thiago Macieira wrote:
> On quinta-feira, 21 de março de 2013 16.52.29, K. Frank wrote:
[...] 
> > 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 have a project where I use -std=c++11 to compile my code but didn't use it 
to compile Qt 4.8 on windows (on Linux I am using the default opensuse rpms). 
Where ever possible I use C++11 in my code and so far I didn't come across any 
problems.

I am using Ruben's mingw build (x86_64-w64-mingw32-gcc-4.7.2-release-
win64_rubenvb.7z) if I remember correctly (don't have access to my windows 
machine right now).

Cheers
  Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130321/ebab25c5/attachment.sig>


More information about the Interest mailing list