Re: [Newbie][Problem] I got some DG Scripts Errors #1st Part

From: Del (caminturn@earthlink.net)
Date: 06/15/01


Abraham Dizon wrote:
>
> make ../bin/circle
> make[1]: Entering directory '/home/falcon/circle30bpl17/src'
> gcc -g -02 -Wall    -c -o act.informative.o act.informative.c
> In file included from act.informative.c:22:
> constants.h:39: conflicting types for 'rev_dir'
> constants.h:34: previous declaration of 'rev_dir'
> constants.h:40: conflicting types for 'movement_loss'
> constants.h:35: previous declaration of 'movement_loss'
> make[1]: *** [act.informative.o] Error 1
> make[1]: Leaving directory '/home/falcon/circle30bpl17/src'
> make: *** [all] Error 2
>
> and here's my constants.h file:
>
<snip>
> extern int rev_dir[];    <---- first declaration
> extern int movement_loss[];  <---- first declaration
> extern int drink_aff[][3];
> extern const char *spell_wear_off_msg[];
> extern const char *npc_class_types[];
> extern const int rev_dir[];         <--------- second declaration
> extern const int movement_loss[];   <---- second declaration
> extern const char *weekdays[];
> extern const char *month_name[];
>

The error tells you exactly what is wrong and where,
rev_dir is defined twice, (it told you which two lines)
Remove one of them.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/05/01 PST