本来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 找不到.
巴扎黑2017-04-17 14:31:07
Add the C:Program Files (x86)Windows Kits10Include10.0.10150.0ucrt
directory to the include directory of your project.
PHP中文网2017-04-17 14:31:07
You can edit pro files (similar to the method below)
INCLUDEPATH += "C:Program Files (x86)Windows Kits10Include10.0.10150.0ucrt"
LIBS += -L"C:Program Files (x86)Windows Kits10Lib10.0.10150.0ucrtx86" -lucrtd