stddef.h No such file or directory



  • Hello everyone,
    I got to remove and re-intall QtCreator last day because it stopped to auto-detect the windows kit.
    After the reinstall, all my project have the same problem : "C1083 stddef.h No such file or directory"
    I know that it come beacause bad association of version, so :

    • I installed MSVC 2017 64-bits (like my pc) in Qt 5.12.3
    • I installed the last version of Visual Studio 2017
    • Project created : Qt application with widget with the kit "Deskop Qt 5.12.3 MSVC2017 64 bit" (without any modification, I don't know what modify)
    • I have the last windows kit

    I hope you can help me
    Thanks for read (and sorry for my bad english)


  • Lifetime Qt Champion

    @Kakugen said in stddef.h No such file or directory:

    "C1083 stddef.h N

    Hi
    Did you also installed the win 10 sdk ?
    https://forum.qt.io/topic/91057/c1083-cannot-open-include-file-stddef-h-no-such-file-or-directory/13
    Else it must be something wrong with the kits.



  • Hi,
    To be sure, I installed again the win 10 sdk. I followed the last triks said in the links, I add :

    INCLUDEPATH += "C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt"
    LIBS += -L"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\ucrt\x86"
    

    to my .pro, then the error message change :
    "LNK1104 impossible to open the file 'shell32.lib' "
    I cheked in the folder of .lib, and this file is really absent. I think I missed something

    By advance, thanks for your help

    EDIT : I tested my VS2017, it's all down too, I will re-install it before trying to fix my Qt (but VS2019 still work)
    EDIt 2 : VS2017 fixed, just needed to set the win SDK in option, and build tools (but the SDK seems work well with VS)


Log in to reply