本来Qt是可以正常编译的. 后来安装的windows driver kit. 后提示缺少
C:Program Files (x86)Microsoft Visual Studio 14.0VCincludecrtdefs.h:10: error: C1083: 无法打开包括文件: “corecrt.h”: No such file or directory
发现corecrt.h存在与C:Program Files (x86)Windows Kits10Include10.0.10150.0ucrt 目录中.
单纯的拷贝corecrt.h,已经无法解决环境问题了.拷贝后提示stddef.h 找不到.
將
C:Program Files (x86)Windows Kits10Include10.0.10150.0ucrt
目錄加入你工程的包含目錄中去。可以編輯pro文件(類似下面的方式)
INCLUDEPATH += "C:Program Files (x86)Windows Kits10Include10.0.10150.0ucrt"
LIBS += -L "C:Program Files (x86)Windows Kits10Lib10.0.10150.0ucrtx86"
LIBS += -L"C:Program Files (x86)Windows Kits10Lib10.0.10150.0ucrtx86" -lucrtd