Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. code highlighting borked after I switched to mingw7.3 x64
Forum Update on Monday, May 27th 2025

code highlighting borked after I switched to mingw7.3 x64

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 692 Views
  • 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 Offline
    R Offline
    rekliner
    wrote on last edited by rekliner
    #1

    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
    0
    • R Offline
      R Offline
      rekliner
      wrote on last edited by rekliner
      #2

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

      jsulmJ 1 Reply Last reply
      0
      • R rekliner

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

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @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
        2
        • R Offline
          R Offline
          rekliner
          wrote on last edited by
          #4

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

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved