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
unknown type name size_t
libio.h
stdio.h
As per C99, §7.17, size_t is not a builtin type but defined in .
size_t
Including the header should fix your problem.