c++ - Qt 编译时提示缺少corecrt.h
阿神
阿神 2017-04-17 14:29:07
0
2
1392

本来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 找不到.

阿神
阿神

闭关修行中......

reply all(2)
巴扎黑

Add the C:Program Files (x86)Windows Kits10Include10.0.10150.0ucrt directory to the include directory of your project.

洪涛

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"

LIBS += -L"C:Program Files (x86)Windows Kits10Lib10.0.10150.0ucrtx86" -lucrtd

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template