Helpful msg "...requires a C++17...On MSVC, pass the /Zc:__cplusplus" but no clue HOW to do that
Unsolved
Qt Creator and other tools
-
the error message from qglobal.h was "Qt requires a C++17 compiler, and a suitable value for __cplusplus. On MSVC, you must pass the /Zc:__cplusplus option to the compiler."
So, do these settings go into the Cmakelist file, or a header, or do i make default settings in microsoft visual studio, or what? I'm happy to comply. JUST TELL ME HOW. Thanks.
-
Hi,
Which version of Visual Studio are you using ?
With which version of Qt ? -
I'm using Qt 6, MSVC 2022, qmake. I had to add this to the .PRO file:
QMAKE_CFLAGS += -std:c++17 QMAKE_CFLAGS += -Zc:__cplusplus