Unsolved C++ library included in version 14
In my Win10 machine, I have installed
Microsoft Visual Studio 11. 12 and 14
Qt has chosen 11's include directory as its source for the C++ library, I would very much prefer to use the C++ library included in version 14. Is this possible?
Which version of Qt did you install?
You must use Qt built for the Visual Studio version you want to use.
If you use Visual Studio 2013 then you need Qt for that version.
You can select Qt version in the online installer.
Hamed.Masafi last edited by
In qt 5.4 add this line to pro file
CONFIG += c++14
@Hamed-Masafi OP is asking to choose a MSVC version 14.0 (VS2015), not a c++ language version. Besides, VS does not use any special switches to enable language version. It always uses the latest features it supports. That CONFIG switch is for GCC and Clang, which default to the c++98 standard.
@Papa Qt Creater uses a concept of Kits. A kit is a collection of a compiler, debugger and Qt library compiled with that compiler version.
If you have MSVC 14.0(VS2015) installed it should be auto detected on the "Compilers" tab. There's no Qt version pre-built with MSVC 14.0, so you'll have to compile it yourself. There's gonna be a pre-build package in Qt 5.6 in about a month. After ou have built Qt you can add it to the "Qt Versions" tab and then create a Kit that uses that compiler and Qt version. When you have a Kit set up it will be offered to you in the project creation wizard.
@Chris-Kawa As far as I know there is already a Qt 5.6 beta build for VS 2015.
@Chris-Kawa But building Qt is not something I would ask a beginner to do :-)
@jsulm touché :) I guess the best recommendation for now is to use VS2013 with the pre-build package until 5.6 comes out.
Yes, I agree, using VS2013 for the time being is the most sensible decision.
Thanks kids for the help.