On Sun, 14 Sep 1997, David Kasprzyk wrote: >gcc -c -g -0 -Wall -fno-strict-prototypes interpreter.c >interpreter.c: In function 'nanny': >interpreter.c:1634: 'as' undeclared (first use this function) > as = read_mobile(AS_RNUM(d->character), REAL); < line > char_to_room(as, AS_ROOM(d->character)); Steps to logical thinking: 1) as is undeclared. 2) I must declare it at the top of the function (nanny in this case) 3) char_to_room takes a struct char_data, that must be what 'as' is. 4) Add a 'struct char_data *as;' to the top of nanny() Sheesh. -- George Greer - Me@Null.net | Genius may have its limitations, but stupidity http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard +------------------------------------------------------------+ | 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/08/00 PST