I\'ve just started using Eclipse Indigo (coming from Galileo) and I\'m getting little red bugs in the gutter for every use of size_t.
I actually had the same problem. The issue seemed to be the same like the one described in the post of fquinner, the stddef.h located in /usr/include/linux/stddef.h
was empty as well. Strangely enough, the correct stddef.h
was found by eclipse and even could be openened without any issues.
If you just need to fix the indexing by eclipse like me (for example when building with another build tool anyway), this indexing issue can be worked around by defining __SIZE_TYPE__
to the expected type, e.g. long unsigned int
under C/C++ General -> Paths and Symbols
.