Hi
> make ../bin/circle
> make[1]: Entering directory `/home/daos/circle30/src'
> gcc -g -O2 -Wall -c -o act.item.o act.item.c
> act.item.c: In function `do_sac':
> act.item.c:1573: `arg' undeclared (first use in this function)
> act.item.c:1573: (Each undeclared identifier is reported only once
> act.item.c:1573: for each function it appears in.)
> make[1]: *** [act.item.o] Error 1
> make[1]: Leaving directory `/home/daos/circle30/src'
> make: *** [all] Error
As the output states arg is an undeclared variable in your function.
just add to the start of the function.
char arg[MAX_INPUT_LENGTH];
------o------
ACMD(do_sac)
{
struct obj_data *obj;
+ char arg[MAX_INPUT_LENGTH];
one_argument(argument, arg);
------o------
--
+---------------------------------------------------------------+
| FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
| Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
| Newbie List: http://groups.yahoo.com/group/circle-newbies/ |
+---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT