[Qt-creator] c++14 supported ?
Kenji Sugita
sugita at sra.co.jp
Mon Jul 27 06:11:39 CEST 2015
Hi,
This is a workaround to enable c++14 for Qt 5.5 on OS X.
QMAKE_CXXFLAGS_CXX11 = -std=c++14 -stdlib=libc++
CONFIG += c++11
From: Freddy Martinez <freddy311082 at gmail.com>
Subject: [Qt-creator] c++14 supported ?
Date: Mon, 27 Jul 2015 00:50:20 -0300
;;; 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
;;;
;;;
More information about the Qt-creator
mailing list