GCC linaro compiler throws error “unknown type name size_t”

前端 未结 3 1305
死守一世寂寞
死守一世寂寞 2021-02-02 11:46

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

3条回答
  •  [愿得一人]
    2021-02-02 12:23

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

    Including the header should fix your problem.

提交回复
热议问题