[Development] Qt 4.8 clang and libc++
Olivier Goffart
olivier at woboq.com
Thu Sep 6 23:14:43 CEST 2012
On Thursday 06 September 2012 22:33:30 Sylvain Pointeau wrote:
> > No. I can't read a 1.5 MB preprocessed source without context.
> >
> > You're the one with libstdc++ and the reproducible issue. You get to fix
> > the
> > issue.
> >
> > I can't help you.
>
> not libstdc++ but the one with libc++
>
> I read on the web that libc++ will not work well in C++03
> and looking at the command line, I don't see
> -*std*=c++11
>
> why is it missing? how can we activate it?
I'm confused? Are you working with 4.8 or with Qt5?
In Qt 4.8, we used to disable c++11 support for webkit and javascriptcore,
because there where too many errors upstream with C++11 at the time. Maybe it
is no logner true for webkit, but the JavaScriptCore of QtScript has not been
updated (and will not). So it is still the case in Qt5.
In Qt 4.8:
src/script/script.pro:*-g++*:QMAKE_CXXFLAGS -= -std=c++0x -std=gnu++0x
In Qt 5:
src/script/script.pro:CONFIG -= c++11
Regarding Webkit in Qt5,
It does not seem to use load(qt_module) in its profle that is required to
enable automatically c++11 like the rest of qt. (it only seem to use it when
compiling the
One may need to add this line in some .pro or .pri file
contains(QT_CONFIG, c++11):CONFIG += c++11
--
Olivier
Woboq - Qt services and support - http://woboq.com
More information about the Development
mailing list