[Qt-creator] Generic Project Manager, code model and C++11
Alexander Drozdov
adrozdoff at gmail.com
Thu May 22 23:24:22 CEST 2014
Thanks, Mohamed!
I found report with this issue:
https://bugreports.qt-project.org/browse/QTCREATORBUG-10404
But, process to turn on C++11 support on different project managers looks
different and non-intuitive.
2014-05-22 23:00 GMT+11:00 Mohamed Fawzi <Fawzi.Mohamed at digia.com>:
> you can create a toolchain that add the flags to to the platform codegen
> and platform link flags fields of the toolchain (options>Build &
> Run>Compilers). And use that in your kit.
> But if you are using qmake (with CONFIG+=c++11 )the flags should be added
> automatically.
>
> Fawzi
> On 22-mag-2014, at 00:10, Alexander Drozdov <adrozdoff at gmail.com> wrote:
>
> Hi list!
>
> Master napshots uses CXX11 by default for parser (Code Model Check
> confirm it).
>
> But, I found that directive __cplusplus defined as 199711L, it looks
> like toolchain asked for predefined constants without -std=c++11 pass as
> argument.
>
> I found work-around: add next declaration to .config file:
> #define __cplusplus 201103L
>
> Now I can use std::chrono, std::thread, std::mutex without limitations.
>
> --
> WBR, Alexander Drozdov
> http://htrd.su
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
>
>
--
WBR, Alexander Drozdov
http://htrd.su
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20140523/e1241496/attachment.html>
More information about the Qt-creator
mailing list