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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to