C - 为什么在eclipse中无法识别size_t?

时间:2022-02-20 17:07:31

In eclipse it don't recognize the type size_t, it write error on it and a message uknown type name 'size_t', it is written right

在eclipse中它不识别类型size_t,它在它上面写错误和消息uknown类型名称'size_t',它写得正确

1 个解决方案

#1


5  

size_t comes from stddef.h standard header file. You have to include it. You can also get it from stdio.h where it is also declared.

size_t来自stddef.h标准头文件。你必须包括它。您也可以从stdio.h获取它,并在其中声明它。

#1


5  

size_t comes from stddef.h standard header file. You have to include it. You can also get it from stdio.h where it is also declared.

size_t来自stddef.h标准头文件。你必须包括它。您也可以从stdio.h获取它,并在其中声明它。