报错Qt Creator C1083: Cannot open include file: ‘cstddef‘: No such file or directory

在使用Qt Creator和msvc2015构建套件时,遇到C1083错误,提示无法打开'cstddef'文件。错误还涉及到'type_traits'文件未找到。问题根源在于Qt Creator缺少Windows SDK的相关环境变量。通过检查发现,系统缺少WindowsSdkDir、WindowsSDKLibVersion和WindowsSDKVersion环境变量。解决办法包括:修改Qt的C/C++编译器配置为v150工具集,清理并重新安装Windows Kits,或在系统环境变量PATH中添加%SystemRoot%system32。此外,错误LNK1158:无法运行“rc.exe”可通过额外步骤解决。
摘要由CSDN通过智能技术生成

 问题报错:

qglobal.h:45:12: error: 'type_traits' file not found main.cpp:1:1: note: in file included from E:\Qt\project\qt\untitled\main.cpp:1: main.cpp:1:10: note: in file included from E:\Qt\project\qt\untitled\main.cpp:1:

在配置好msvc后,qt成功识别了相应的组件,但是创建工程后,使用msvc2015构建套件创建项目并编译运行后,出现报错

Qt Creator C1083: Cannot open include file: 'cstddef': No such file or directory

并且顶部提示

qglobal.h:45:12: error: 'type_traits' file not found main.cpp:1:1: note: in file included from E:\Qt\project\qt\untitled\main.cpp:1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值