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

Clang Code Model fail(file not found) when using custom complier



  • My program need to use some linux api (like socketpair), I have to use GCC instead of MinGW64. So I try to use MSYS2 as complier and Qt Creator as editor.

    I manully add a build kit at the setting page, build succefully and the program runs just fine, but Qt Creator show header file not found, event the iostrem header.
    33.jpg 22.jpg 11.jpg

    I read the doc at https://doc.qt.io/qtcreator/creator-clang-codemodel.html but did not find a solution.

    Is there a way to setup custom code model path?


Log in to reply