使用CJSON文件是编译 size_t报错
cJSON
Ultralightweight JSON parser in ANSI C
项目地址:https://gitcode.com/gh_mirrors/cj/cJSON

·
报错位置定位:
typedef struct cJSON_Hooks {
void *(*malloc_fn)(size_t sz);
void (*free_fn)(void *ptr);
} cJSON_Hooks;
解决办法:
1. 先包函stdlib.h stdio.h
2. 在.h里添加string头文件
可以解决报错,但一直不明白为什么...




Ultralightweight JSON parser in ANSI C
最近提交(Master分支:11 天前 )
c859b25d
10 天前
74e1ff49
this fixes CVE-2025-57052 14 天前
更多推荐
所有评论(0)