Ok, let's say I have FILE1.C which has:
> struct evnt_struct
> {
> int pid_owner;
> int num_waiting;
> }
>
> struct evnt_struct evnt_array[33];
All that is declared outside a function, therefore evnt_array[33] is global.
Ok, in FILE2.C I have:
> extern struct evnt_struct evnt_array[33];
Doesn't this allow me to use evnt_array[] in FILE2.C? I keep getting this error:
> invalid use of undefined type 'struct evnt_struct'
I'm using Mandrake 8.1, kernel version 2.4.8 Please help!
> struct evnt_struct
> {
> int pid_owner;
> int num_waiting;
> }
>
> struct evnt_struct evnt_array[33];
All that is declared outside a function, therefore evnt_array[33] is global.
Ok, in FILE2.C I have:
> extern struct evnt_struct evnt_array[33];
Doesn't this allow me to use evnt_array[] in FILE2.C? I keep getting this error:
> invalid use of undefined type 'struct evnt_struct'
I'm using Mandrake 8.1, kernel version 2.4.8 Please help!