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

Philip Brown phil at bolthole.com
Sat Jun 12 18:05:19 CEST 2010


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?
putting it within
 extern "C"{}

does not appear to help. Which is sad, because that IS actually how it is 
used in the actual library code.




More information about the maintainers mailing list