From: Vincent Cunniffe (vcunniff at domain arbgroup.com)
Date: Fri 17 Sep 1999 - 09:30:51 IST
ilug-admin at domain linux.ie wrote:
>
> On 17-Sep-99 Vincent Cunniffe wrote:
> >
> >Figured it'd be something like that, but I'd forgotten the syntax for
> >typedefs and couldn't find my copy of Stroustrup ;-)
>
> course there is nothing stopping us doing
>
> struct fish
> {
> int a;
> };
> in the header file and
>
> struct fish cod;
> and
> extern struct fish cod;
>
> in a.c and b.c respectively
gcc was complaining about that, for some reason.
I find it odd that you can't compile a struct *definition* more
than once, because there's no actual data defined.
I was using externs for the data declarations, of course.
Vin
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:34 GMT