Problem when compiling XFree86 3.3.1

Bernd Schmidt crux@Pool.Informatik.RWTH-Aachen.DE
Wed Sep 3 10:16:00 GMT 1997


I recently compiled XFree86 3.3.1 on an i586-linux machine with a recent
snapshot, and I ran across one problem:

darkstar:/usr/src # cat array.c
static short foo[16];

int main()
{
        extern short foo[];
        return 0;
}
darkstar:/usr/src # gcc -ansi -pedantic array.c
array.c: In function `main':
array.c:5: array size missing in `foo'
darkstar:/usr/src # gcc -ansi -pedantic array.c -V2.7.2.1
darkstar:/usr/src #

Which compiler is right?

Bernd



More information about the Gcc mailing list