This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Strange compile error


Greetings,

System: Linux 2.2.17
Compiler: gcc 2.95.2

I needed to recompile some old code which worked and got an error. I
might have upgraded the compiler since I built the code. I constructed a
test case that demonstrates the error. Can someone suggest what is going
on (and what is the solution). Please cc me as I'm not subscribed to the
list. TIA.

$ gcc test.c
In file included from test.c:1:
test.h:5: field `data' has incomplete type

test.h:
-----
#include "stddef.h"

typedef struct {
    signed char date[];
    size_t size;
} ENTRY;

test.c:
-----
#include "test.h"

int main()
{
}

--
Aaron Stromas    | "Tick-tick-tick!!!... ja, Pantani is weg..."
Oracle Corp      |                             BRTN commentator
+1 703.708.68.21 |                              L'Alpe d'Huez
                                            1995 Tour de France



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]