error with autoquest code

From: Michael J. Fara (mulder@CLOUD9.NET)
Date: 01/16/98


I took some autoquest code off the mailing list website, changed the
defines and object info, I also put the autoquest command in interpreter.c
and defined the QUESTOR player flag in structs.h. Here is the error I get:

gcc -c -g -O -Wall -fno-strict-prototypes  quest.c
quest.c: In function `do_autoquest':
quest.c:129: warning: implicit declaration of function `GET_QUESTMOB'
quest.c:130: warning: implicit declaration of function `GET_QUESTGIVER'
quest.c:130: warning: assignment makes pointer from integer without a cast
quest.c:133: invalid type argument of `->'
quest.c:133: invalid type argument of `->'
quest.c:133: invalid type argument of `->'
quest.c:136: warning: implicit declaration of function `GET_QUESTOBJ'
quest.c:166: warning: implicit declaration of function `GET_QUESTPOINTS'
quest.c:175: warning: implicit declaration of function `GET_NEXTQUEST'
quest.c:187: warning: implicit declaration of function `GET_COUNTDOWN'
quest.c:201: `MOB_QUESTMASTER' undeclared (first use this function)
quest.c:201: (Each undeclared identifier is reported only once
quest.c:201: for each function it appears in.)
quest.c:217: invalid lvalue in assignment
quest.c:255: invalid lvalue in assignment
quest.c:269: invalid lvalue in assignment
quest.c:283: invalid lvalue in assignment
quest.c:297: invalid lvalue in assignment
quest.c:312: invalid lvalue in assignment
quest.c:326: invalid lvalue in assignment
quest.c:345: invalid lvalue in assignment
quest.c:398: invalid lvalue in assignment
quest.c:412: warning: comparison between pointer and integer
quest.c:442: invalid lvalue in assignment
quest.c:443: invalid lvalue in assignment
quest.c:444: invalid lvalue in assignment
quest.c:445: invalid lvalue in assignment
quest.c:446: invalid lvalue in assignment
quest.c:448: invalid lvalue in assignment
quest.c:491: invalid lvalue in assignment
quest.c:492: invalid lvalue in assignment
quest.c:493: invalid lvalue in assignment
quest.c:494: invalid lvalue in assignment
quest.c:495: invalid lvalue in assignment
quest.c:497: invalid lvalue in assignment
quest.c: In function `generate_quest':
quest.c:554: `MOB_QUEST' undeclared (first use this function)
quest.c:601: invalid lvalue in assignment
quest.c:638: invalid lvalue in assignment
quest.c:689: invalid lvalue in assignment
quest.c: In function `quest_update':
quest.c:708: invalid lvalue in decrement
quest.c:718: invalid lvalue in decrement
quest.c:720: invalid lvalue in assignment
quest.c:724: invalid lvalue in assignment
quest.c:725: invalid lvalue in assignment
quest.c:726: invalid lvalue in assignment
*** Error code 1
make: Fatal error: Command failed for target `quest.o'
Current working directory /export/home/delta/deltamud/src
*** Error code 1
make: Fatal error: Command failed for target `default'

Now there are other warnings of implicit declaration which usually dont
crash the server. I am concerned with the lvalue problem. Here is a sample
of the code (or you can get it at
http://democracy.queensu.ca/~fletcher/Circle/Snippet/quest.txt):

                     GET_NAME(GET_QUESTGIVER(ch)));
    GET_QUESTGIVER(ch) = questman;

Seems to be with the questgiver thing. Can anyone help out?


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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