[Circle] Coding Problem

From: Mathieu Fenniak (fenniakj@cadvision.com)
Date: 11/06/96


I'm using circle 3.0bpl11, and am working on adding a extra class type
thing (like races, but different name). I just finished modifing my
files, and am having a problem compiling. Here's the problem:
One file contains the code:
const int occ_apply[NUM_OCC][5] = {
{+1, 0, 0, -1, +1},
{0, 0, +1, +1, -2},
{+3, -4, +1, 0, 0}};

Another contains:
int init_char()
{
extern const int occ_apply[NUM_OCC][5];
...
GET_STR(ch) = 25 + occ_apply[GET_OCC(ch)][0];
GET_CON(ch) = 25 + occ_apply[GET_OCC(ch)][1];
GET_DEX(ch) = 25 + occ_apply[GET_OCC(ch)][2];
}

The problem is with the 'extern const int occ_apply[NUM_OCC][5]' line. I
get a compiling error that says 'occ_apply is neither an array or a
...'. I forget the entire message, but I hope someone will still be able
to show me the way. (BTW, occ and OCC stand for occupation.)

I'd be greatful for any help you all could offer.
				Mathieu Fenniak
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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