Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Solved code highlighting borked after I switched to mingw7.3 x64

    General and Desktop
    2
    4
    463
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rekliner last edited by rekliner

      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?

      img

      1 Reply Last reply Reply Quote 0
      • R
        rekliner last edited by rekliner

        Windows 10 BTW but was previously built on 8 with the old mingw.
        Is this more of a stack exchange kinda problem?

        jsulm 1 Reply Last reply Reply Quote 0
        • jsulm
          jsulm Lifetime Qt Champion @rekliner last edited by

          @rekliner If you disable Clang code model plug-in in QtCreator is it better then?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply Reply Quote 2
          • R
            rekliner last edited by

            @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.

            1 Reply Last reply Reply Quote 2
            • First post
              Last post