Re: [NEWBIE] a small question

From: George (greerga@CIRCLEMUD.ORG)
Date: 06/12/98

On Fri, 12 Jun 1998, Quinn ShadowStalker wrote:

>Ok ive looked this over about 1000 times and I cant figure out what extern
>I should add to make this function declared, could someone assist me here?

You failed (or have never taken) a C course, I bet.

1) 'd' is never an extern in the code, descriptor_list is closest to idea.
2) 'd' is not a function.

A classic cut & paste pitfall:

>here is what the error is
>shinra.c:1504: `d' undeclared (first use in this function)
>shinra.c:1504: (Each undeclared identifier is reported only once
>shinra.c:1504: for each function it appears in.)
>and the line is

Since you have given us absolutely _zero_ context as to what the function
is, I'll just take this shot in the dark:


Try changing 'd->character' to 'ch'


I could throw out plenty of CFLA (colorful four letter acronyms) on this,
but I won't.


George Greer, | Genius may have its limitations, but          | stupidity is not thus handicapped.    |                  -- Elbert Hubbard

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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