Re: [CODE:] clan code

From: Elvis Mohan (elvis@hal9000.trinidad.net)
Date: 02/21/97


Just ensure theres a ';' at the end of line 25...

got that same prob myself trying to install it.

Regards,
Elvis.


On Thu, 20 Feb 1997, Goudy's Pizza wrote:

> >Nothing is wrong with the lines in question. As with what might be a
> >possible problem (coming from a person that doesn't use the clan
> >code): clan.h has to be included *after* structs.h, as structs.h is
> >the place where ubyte is typedef'd.
> >
> Thank you, i checked and i had clan.h before structs.h in my Makefile for
> act.comm.c :).
> 
> but now i get serious problems, the ubyte don't seem to hold the type of
> info they need to :( I get these errors when i compile now :(
> 
> Makefile 
> 
> clan.o: clan.c structs.h utils.h comm.h db.h interpreter.h spells.h \
>   handler.h clan.h
> <  tab  >$(CC) -c $(CFLAGS) clan.c
> 
> 
> 
> clan.c:26: storage class specified for parameter `descriptor_list'
> line 26:
> extern struct descriptor_data *descriptor_list;
> 
> clan.c:28: parameter `clan_privileges' is initialized
> 
> clan.c:29: warning: initialization from incompatible pointer type
> 28:
> char clan_privileges[NUM_CP+1][20] ={
> 
> 
> clan.c:29: warning: excess elements in scalar initializer after
> `clan_privileges'
> 
> and these all throw them in 29 :(
> "setplan","enroll","expel","promote","demote","setfees","withdraw","setapplev"};
> 
> I think the other errors are just throw offs :(
> Any and all help are greatly appreciated, thanks again
> 
> Malcor the lost :)
> 
> 
> Makefile 
> 
> clan.o: clan.c structs.h utils.h comm.h db.h interpreter.h spells.h \
>   handler.h clan.h
> <  tab  >$(CC) -c $(CFLAGS) clan.c
> 
> 
> 
> clan.c:26: storage class specified for parameter `descriptor_list'
> line 26:
> extern struct descriptor_data *descriptor_list;
> 
> clan.c:28: parameter `clan_privileges' is initialized
> 
> clan.c:29: warning: initialization from incompatible pointer type
> 28:
> char clan_privileges[NUM_CP+1][20] ={
> 
> 
> clan.c:29: warning: excess elements in scalar initializer after
> `clan_privileges'
> 
> and these all throw them in 29 :(
> "setplan","enroll","expel","promote","demote","setfees","withdraw","setapplev"};
> 
> I think the other errors are just throw offs :(
> Any and all help are greatly appreciated, thanks again
> 
> Malcor the lost :)
> 
> 
> 
> +-----------------------------------------------------------+
> | Ensure that you have read the CircleMUD Mailing List FAQ: |
> |   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
> |    Or send 'info circle' to majordomo@cspo.queensu.ca     |
> +-----------------------------------------------------------+
> 

-------------->I came, I saw, I deleted his source code.<----------------

==========================================================================

        .---.        .-----------  || Elvis Mohan,
       /     \  __  /    ------    || Internet Development Engineer,
      / /     \(  `-,   -----      || InterServ Ltd.
     //////    '~ (    ---         || Phone: (809) 637-6862
    //// / // :    ; ---           || Fax: (809) 637-8267
   // /   /  /)   / --             || E-Mail: emohan@trinidad.net
  /          //..\\      
============UU====UU========================================================
            '//||\\`     They will soar on wings as eagles...            
                                                (Isaiah 40:31)

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
|    Or send 'info circle' to majordomo@cspo.queensu.ca     |
+-----------------------------------------------------------+



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