code highlighting borked after I switched to mingw7.3 x64
-
Installing on a new workstation with newest QT version (5.12.1). Decided to load an old project and use a newer compiler.. it was mingw5.3 x32. Everything compiles and runs correctly but code highlighting is completely messed up and hates every declaration.
The error is "The code model could not parse an included file...
'type traits' file not found" , which is referenced from C:\Qt\5.12.1\mingw73_64\include\QtCore/qglobal.h:1198
and " use of undeclared identifier 'std'".All of this seems to point to not being configured correctly to use the correct standard library. I've added "CONFIG += c++11" to the .pro file per stack exchange tips to no effect and tried "QMAKE_CXXFLAGS += -std=c++11 -Wall -Wextra -pedantic". But I'm out of ideas... any suggestions?
-
@jsulm said in code highlighting borked after I switched to mingw7.3 x64:
disable Clang code model plug-in in QtCreator
That did the trick, thanks!
If anyone else has this issue, exact instructions are here: To use the built-in code model instead, select Help > About Plugins > C++, and deselect the ClangCodeModel check box. The changes take effect after you restart Qt Creator.