Newsgroups: news.software.b
Path: utzoo!henry
From: henry@zoo.toronto.edu (Henry Spencer)
Subject: Re: getting CNEWS running on rs6000
Message-ID: <1991Apr1.173334.9221@zoo.toronto.edu>
Date: Mon, 1 Apr 1991 17:33:34 GMT
References: <3394@ucsfcca.ucsf.edu>
Organization: U of Toronto Zoology

In article <3394@ucsfcca.ucsf.edu> jd9014@cca.ucsf.edu (Joe DeBattista) writes:
>       16 | static datetkn datetktbl[];
>    1506-131: (S) Explicit extent specification or initializer required for an auto  or static array.
>      107 | static datetkn datetktbl[] = {
>            ...............a..............
>a - 1506-030: (S) Illegal redeclaration of identifier.

Sigh.  The problem here is that the code is trying to do a forward
declaration of a static array of indeterminate size, and it turns out
that for obscure reasons, you just Can't Do That in ANSI C, although
older compilers let you get away with it.

The only quick fix that has any likelihood of working is to move the
definition of the array (line 107 et al) up where the declaration
(line 16) is now.
-- 
"The stories one hears about putting up | Henry Spencer @ U of Toronto Zoology
SunOS 4.1.1 are all true."  -D. Harrison|  henry@zoo.toronto.edu  utzoo!henry
