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

K. Frank kfrank29.c at gmail.com
Thu Mar 21 22:45:41 CET 2013


Hello Christian!

On Thu, Mar 21, 2013 at 5:37 PM, Christian Quast
<christian.quast at cquast-it.de> wrote:
> 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 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.

Thank you.  That's reassuring.

> 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).

Yes, I am also using one of Ruben's 4.7 builds (4.7.0, off the top of
my head).

> Cheers
>   Christian

Cheerio!


K. Frank



More information about the Interest mailing list