C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
TNS C Compiler Messages
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
20-33
Types of Compiler Messages
184
The call to the offsetof function has the wrong parameters.
185
The first parameter of the offsetof function must be a structure or union type.
186
The second parameter of the offsetof function must be a member of the structure
that is the first parameter.
187
The second parameter of the offsetof function cannot be a bit field member of the
structure that is the first parameter of the offseof function.
188
The structure declaration does not have a tag. If this is a typedef declaration, it does
not have a typedef name.
For example, here is a structure without a tag:
struct { ... }; /* structure with no tag */
Here is a structure with the tag point:
struct point { ... }; /* structure with tag */
Here is a typedef declaration that has no name:
typedef struct { ... }; /* typedef with no name */
Here is a typedef declaration with a name:
typedef struct { ... } complex; /* typedef with name */
format is offsetof ( type , member )
first argument of offsetof is not a structure type
second argument of offsetof is not a member of the structure
second argument of offsetof must not be a bit field member of
the structure
this struct or union has no tag and no typedef name