Re: [NEWBIE] Mobprogs

From: George (gagreer@ham.muohio.edu)
Date: 10/11/96


On Fri, 11 Oct 1996, Nic Suzor wrote:

> comm.h:33: parse error before `desc'
> comm.h:43: parse error before `sigfunc'
> comm.h:43: warning: data definition has no type or storage class

Got an error in a header file, take a look at it.

> mobcmd.c: In function `mprog_type_to_name':
> mobcmd.c:73: `IN_FILE_PROG' undeclared (first use this function)
> mobcmd.c:73: (Each undeclared identifier is reported only once
> mobcmd.c:73: for each function it appears in.)
> mobcmd.c:74: `ACT_PROG' undeclared (first use this function)
> mobcmd.c:75: `SPEECH_PROG' undeclared (first use this function)
> mobcmd.c:76: `RAND_PROG' undeclared (first use this function)
> mobcmd.c:77: `FIGHT_PROG' undeclared (first use this function)
> mobcmd.c:78: `HITPRCNT_PROG' undeclared (first use this function)
> mobcmd.c:79: `DEATH_PROG' undeclared (first use this function)
> mobcmd.c:80: `ENTRY_PROG' undeclared (first use this function)
> mobcmd.c:81: `GREET_PROG' undeclared (first use this function)
> mobcmd.c:82: `ALL_GREET_PROG' undeclared (first use this function)
> mobcmd.c:83: `GIVE_PROG' undeclared (first use this function)
> mobcmd.c:84: `BRIBE_PROG' undeclared (first use this function)
> mobcmd.c:85: warning: unreachable code at beginning of switch tatement
> mobcmd.c: In function `do_mpasound':
> mobcmd.c:138: `MOBTrigger' undeclared (first use this function)
> mobcmd.c:1297: dereferencing pointer to incomplete type 
> mobcmd.c:1298: dereferencing pointer to incomplete type
> mobcmd.c:1298: dereferencing pointer to incomplete type
> mobcmd.c:1298: dereferencing pointer to incomplete type
> mobcmd.c:1298: dereferencing pointer to incomplete type
> mobcmd.c:1298: dereferencing pointer to incomplete type

Looks like you forgot a header file, check your #include's

---
George Greer, gagreer@dragon.ham.muohio.edu



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



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