Re: extern variables?

From: Skylar (skylar@ifconfig.intserv.com)
Date: 07/07/96


On Sat, 6 Jul 1996, Nick wrote:

> I'm having a weird problem.  I am trying to use the following variables 
> in one of my circle code files:
>   board_info[whatever].rnum
>   shop_index[whatever].producing[number]
> 
> Now, when I first tried to compile, I tried it with just putting this 
> stuff at the top of the file (with the other externs):
>   extern struct board_info_type board_info[];
>   extern struct shop_data *shop_index;
> 
> It didn't compile correctly.  So then I figured I had to add this stuff too:
>   #include "shop.h"
>   #include "boards.h"
> 
> Unfortunately, it _still_ won't compile.  What am I doing wrong?
> 
> The kinds of errors that I get seem to be "undefined type" or "incomplete 
> type".


#include "db.h"

It has a lot of global variable which are needed by a great deal of 
functions throughout the code ... i.e. buf



This archive was generated by hypermail 2b30 : 12/07/00 PST