A structure including a zero element array can be compiled by Pelles C 7.00.355 (x64):
typedef struct {
int dummy;
int data[];
} DUMMY_STRUCT;
But a structure with a union including zero element array can't be compiled by Pelles C 7.00.355 (x64):
typedef struct {
int dummy;
union {
int padding;
int data[];
};
} DUMMY_STRUCT;
Got an error message:
Quoteerror #2065: Invalid use of incomplete type 'int []'.
I only found one such structure named WNODE_ALL_DATA in "wmistr.h" header until now.
Use -Ze option for that.
-Ze -Zx are all set by default.
It works.
The error should be not in the declaration, but in the usage of the struct.
Post a compilable short piece of code to check.
See the attachment
Upgrade to PellesC V.8.00 RC6
It will solve also SQLITE compiling problem.