QT使用vs2017编译时提示无法找到stddef.h头文件

找到win10 SDK版本的位置,在include和lib目录中增加

include路径添加:C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt

lib路径添加:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17763.0\ucrt\x86

提示新的错误:无法找到shell32.lib

找到shell32.lib所在的文件加入到lib文件路径中

C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17763.0\um\x64

提示新的问题:

rc.exe无法运行

找到对应版本kit的rc.exe文件的位置添加到PATH路径中

C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64

 

成功编译,但是还有个问题就是 MInGW下可以显示的背景图片无法显示了。。。。

stdio.h是C语言中的标准输入输出头文件,定义了一些输入输出操作的函数和宏。下面是stdio.h头文件的完整代码: ``` #ifndef _STDIO_H #define _STDIO_H #include <sys/cdefs.h> #include <sys/types.h> #include <stdarg.h> #define __need_size_t #define __need_NULL #include <stddef.h> #define __need_FILE #define __need___FILE #include <bits/types/FILE.h> #define BUFSIZ 8192 #define EOF (-1) #define FOPEN_MAX 20 #define FILENAME_MAX 1024 #define L_tmpnam 20 #define SEEK_SET 0 #define SEEK_CUR 1 #define SEEK_END 2 #define TMP_MAX 26 #define stdin (&__sF) #define stdout (&__sF) #define stderr (&__sF) extern struct __sFILE __sF; int remove(const char *); int rename(const char *, const char *); FILE *tmpfile(void); char *tmpnam(char *); int fclose(FILE *); int fflush(FILE *); FILE *fopen(const char *, const char *); FILE *freopen(const char *, const char *, FILE *); void setbuf(FILE *, char *); int setvbuf(FILE *, char *, int, size_t); int fprintf(FILE *, const char *, ...); int fscanf(FILE *, const char *, ...); int printf(const char *, ...); int scanf(const char *, ...); int snprintf(char *, size_t, const char *, ...); int sscanf(const char *, const char *, ...); int vfprintf(FILE *, const char *, va_list); int vfscanf(FILE *, const char *, va_list); int vprintf(const char *, va_list); int vscanf(const char *, va_list); int vsnprintf(char *, size_t, const char *, va_list); int vsscanf(const char *, const char *, va_list); int fgetc(FILE *); char *fgets(char *, int, FILE *); int fputc(int, FILE *); int fputs(const char *, FILE *); int getc(FILE *); int getchar(void); char *gets(char *); int putc(int, FILE *); int putchar(int); int puts(const char *); int ungetc(int, FILE *); size_t fread(void *, size_t, size_t, FILE *); size_t fwrite(const void *, size_t, size_t, FILE *); int fgetpos(FILE *, fpos_t *); int fseek(FILE *, long int, int); int fsetpos(FILE *, const fpos_t *); long int ftell(FILE *); void rewind(FILE *); void clearerr(FILE *); int feof(FILE *); int ferror(FILE *); void perror(const char *); #endif /* _STDIO_H */ ```
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

pangweijian

传播知识,点亮智慧~~

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值