I am working in existing C code which has a couple of lines with statements similar to this one:
struct collect_conn *tc = (struct collect_conn *)
((char *
It might be confused, check if you have a definition of offsetof
in-scope, for instance. Otherwise you might try simplifying the expression, breaking it up using e.g. a #define
with the offset
of, or something.
I'm thinking the compiler might provide a built-in version of offsetof
, while Eclipses's compiler/code-parser might not. If so, you would need to make sure you have the definition, for Eclipse to be able to properly parse your code.