This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: size_t problem in include files


Put this line near the top of your header file section in your C source code:
#include <stddef.h>


Note, I am surprised that the C header files unistd.h and string.h are not including stddef.h already.

string.h is required to declare size_t (C99, 7.21.1/1). Bug?



Segher



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]