[Qt-creator] c++14 supported ?

Freddy Martinez freddy311082 at gmail.com
Mon Jul 27 05:50:20 CEST 2015


Hi guys… Look at this project… I have set into .pro 

CONFIG += c++14

and it doesn’t work… i got this errors:

In file included from ../tuples/main.cpp:2:
In file included from /Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/QString:1:
/Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qstring.h:739:55: error: no type named 'u16string' in namespace 'std'
static inline QString fromStdU16String(const std::u16string &s);
~~~~~^
/Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qstring.h:740:17: error: no type named 'u16string' in namespace 'std'
inline std::u16string toStdU16String() const;
~~~~~^
/Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qstring.h:741:55: error: no type named 'u32string' in namespace 'std'
static inline QString fromStdU32String(const std::u32string &s);
~~~~~^
/Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qstring.h:742:17: error: no type named 'u32string' in namespace 'std'
inline std::u32string toStdU32String() const;
~~~~~^
/Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qstring.h:1307:53: error: no type named 'u16string' in namespace 'std'
inline QString QString::fromStdU16String(const std::u16string &s)
~~~~~^
/Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qstring.h:1310:13: error: no type named 'u16string' in namespace 'std'
inline std::u16string QString::toStdU16String() const
~~~~~^
/Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qstring.h:1311:15: error: no member named 'u16string' in namespace 'std'
{ return std::u16string(reinterpret_cast<const char16_t*>(utf16()), length()); }
~~~~~^
/Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qstring.h:1313:53: error: no type named 'u32string' in namespace 'std'
inline QString QString::fromStdU32String(const std::u32string &s)
~~~~~^
/Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qstring.h:1316:13: error: no type named 'u32string' in namespace 'std'
inline std::u32string QString::toStdU32String() const
~~~~~^
/Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qstring.h:1318:10: error: no member named 'u32string' in namespace 'std'
std::u32string u32str(length(), char32_t(0));
~~~~~^
/Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qstring.h:1319:75: error: use of undeclared identifier 'u32str'
int len = toUcs4_helper(d->data(), length(), reinterpret_cast<uint*>(&u32str[0]));
^
/Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qstring.h:1320:5: error: use of undeclared identifier 'u32str'
u32str.resize(len);
^
/Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qstring.h:1321:12: error: use of undeclared identifier 'u32str'
return u32str;
^
../tuples/main.cpp:3:10: fatal error: 'thread' file not found
#include <thread>
^
14 errors generated.
make: *** [main.o] Error 1
00:46:33: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project tuples (kit: Desktop Qt 5.5.0 clang 64bit)
When executing step “Make"

is c++14 supported with Qt Creator ??? because with qt5.4 i had not problem with this… problems come with qt 5.5 :(

regards


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20150727/a7dabfcf/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tuples.zip
Type: application/zip
Size: 4423 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20150727/a7dabfcf/attachment.zip>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20150727/a7dabfcf/attachment-0001.html>


More information about the Qt-creator mailing list