Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[QtCreator] Clang code model & <cstdint>



  • Hello,

    I'm using Qtcreator 4.4 and I have this strange issue in one of my project where the Clang code model keeps throwing at me:

    0_1504702264251_195f8f8a-5143-4a9d-a190-a95bd76e6a20-image.png

    But the #include <cstdint> is present in my code, so I don't really get what's happening there.
    Here is part of my Qmake file:

    TEMPLATE = app
    CONFIG += console
    CONFIG -= app_bundle
    CONFIG -= qt
    
    QMAKE_CXXFLAGS += -std=c++1z
    QMAKE_CXXFLAGS_RELEASE += -O3
    
    [...]
    
    LIBS += -lSDL2 -lpthread
    

    I also tried with:

    TEMPLATE = app
    CONFIG += console
    CONFIG += c++11
    CONFIG -= app_bundle
    CONFIG -= qt
    
    [...]
    
    QMAKE_CXXFLAGS_RELEASE += -O3
    
    LIBS += -lSDL2 -lpthread
    

    I looked for a solution over the internet, but the best answer I found was "misconfigured kit". which is not really explicit.

    Thanks to anyone able to give some hints about this.


Log in to reply