GCC编译器Linaro的错误抛出"未知类型名称为size_t" [英] GCC linaro compiler throws error "unknown type name size_t"

查看:3468
本文介绍了GCC编译器Linaro的错误抛出"未知类型名称为size_t"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 GCC Linaro的编译器来编译我的code。它引发错误未知的类型名称为size_t libio.h 。它从 stdio.h中在内。在我的code,我只是包括 stdio.h中

I am using GCC Linaro compiler for compiling my code. Its throwing the error unknown type name size_t from libio.h. Its included from stdio.h. In my code I am just including stdio.h.

任何一个可以请如何解决这个错误。

Can any one please how to resolve this error.

推荐答案

按C99,§7.17,为size_t 不是内建类型,但在<$ C $定义C>&LT; STDDEF.H方式&gt;

As per C99, §7.17, size_t is not a builtin type but defined in <stddef.h>.

包括&LT; STDDEF.H方式&gt; 头应该解决您的问题。

Including the <stddef.h> header should fix your problem.

这篇关于GCC编译器Linaro的错误抛出&QUOT;未知类型名称为size_t&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆