[csw-maintainers] need help with C++ cmopile problem

James Lee james at opencsw.org
Sun Jun 13 10:39:30 CEST 2010


On 12/06/10, 17:05:19, Philip Brown <phil at bolthole.com> wrote regarding
[csw-maintainers] need help with C++ cmopile problem:

> Oddity that I have run into trying to compile a library.
> simplified example below.

> The following compiles with sun cc:

> typedef struct fooo{
> int filler;
> int testing [];
> } foostruct;


> it does NOT compile, however, with sun CC.

> "test.c", line 4: Error: In this declaration "testing" is of an
> incomplete type "int[]".


> Any suggestions on what I can do?


typedef struct fooo{
int filler;
int *testing;
} foostruct;



James.


More information about the maintainers mailing list