[Qt-creator] Generic Project Manager, code model and C++11
Mohamed Fawzi
Fawzi.Mohamed at digia.com
Thu May 22 14:00:37 CEST 2014
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<mailto: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<http://htrd.su/>
_______________________________________________
Qt-creator mailing list
Qt-creator at qt-project.org<mailto:Qt-creator at qt-project.org>
http://lists.qt-project.org/mailman/listinfo/qt-creator
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20140522/cbb943c5/attachment.html>
More information about the Qt-creator
mailing list