Missing window SDK header after switching from msvc2013 to 2015

  • I was using Qt 64 bits with msvc2013, everything was fine. I had to switch to msvc2015, and the related Qt and now I have several error of missing include

    sdkddkver.h and VerRsrc.h

    I found these two header in C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include and if I copy them to my project directory, other include are missing. I ended up with missing winapifamily.h and i cant find it anywhere

    MSVC2013 Express is uninstalled MSVC2015 Pro is installed SDK 8.1 installed with debugging tool

    Additionnal info : compiler and debugger looks fine inside Qt, and it seems to use vcvarsall.bat correctly

    A really basic main compile but if I add another include, the error appears
    #include <QApplication>
    #include <QMainWindow>
    #include <QPushButton>
    //#include <QAbstract3DGraph>

    int main(int argc, char *argv[])
        QApplication app(argc, argv);
        QMainWindow *mw = new QMainWindow;
        QPushButton bouton("Hello world",mw);
        return app.exec();

    If I uncomment #include <QAbstract3DGraph> I have the error

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.