[Interest] Several issues compiling Qt 4.8.4 with mingw-w64 4.8.1, possible related to "-std=gnu++11"
Thiago Macieira
thiago.macieira at intel.com
Wed Apr 17 00:08:50 CEST 2013
On terça-feira, 16 de abril de 2013 18.03.20, K. Frank wrote:
> When I build my code (which will typically use various c++11 features)
> I will specify "-std=gnu++11" even though I will be linking to (and using
> the headers of) the Qt installation I build without "-std=gnu++11".
>
> (I am not actually certain how to do this, but I will ask in a new thread.)
>
> Is that the idea?
Yes.
You do that by:
QMAKE_CXXFLAGS += -std=gnu++11
> I'm not asking for any guarantees -- I understand that I am pushing
> the envelope here -- but do folks think that this will probably work
> (for some values of probably)?
You should not get any problems with Qt. I've been doing the opposite that
you're going to do for years without a problem: compiling Qt 4 with -std=c++0x
and compiling KDE against that, but without the flag.
--
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/20130416/59d12eb0/attachment.sig>
More information about the Interest
mailing list