[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  ROM
. -> [Folder]  Compiling the server
. . -> [Subject]  New Problem...:(

New Problem...:(

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Sephiroth   (6 posts)  [Biography] bio
Date Wed 26 Feb 2003 07:47 AM (UTC)
Message
Ok, here it goes...I tried adding a grant command into my MUD, here is the error I get when I do a make:

gcc -c -Wall -O -g -Dunix -DOLD_RAND -DNOCRYPT act_com
In file included from act_comm.c:38:
merc.h:1459: parse error before "GRANT_DATA"
merc.h:1459: warning: no semicolon at end of struct or u
merc.h:1485: parse error before '}' token
act_comm.c: In function `do_delete':
act_comm.c:59: dereferencing pointer to incomplete type
act_comm.c:64: dereferencing pointer to incomplete type
act_comm.c:88: dereferencing pointer to incomplete type
act_comm.c: In function `do_replay':
act_comm.c:266: dereferencing pointer to incomplete type
act_comm.c:272: dereferencing pointer to incomplete type
act_comm.c:273: dereferencing pointer to incomplete type
act_comm.c: In function `do_tell':
act_comm.c:868: dereferencing pointer to incomplete type
act_comm.c:897: dereferencing pointer to incomplete type
act_comm.c: In function `do_reply':
act_comm.c:933: dereferencing pointer to incomplete type
act_comm.c:969: dereferencing pointer to incomplete type
make: *** [act_comm.o] Error 1

And here's the code from merc.h:

struct pc_data
{
PC_DATA * next;
BUFFER * buffer;
GRANT_DATA * granted;
bool valid;
char * pwd;
char * bamfin;
char * bamfout;
char * title;
time_t last_note;
time_t last_idea;
time_t last_penalty;
time_t last_news;
time_t last_changes;
sh_int perm_hit;
sh_int perm_mana;
sh_int perm_move;
sh_int true_sex;
int last_level;
sh_int condition [4];
sh_int learned [MAX_SKILL];
bool group_known [MAX_GROUP];
sh_int points;
bool confirm_delete;
char * alias[MAX_ALIAS];
char * alias_sub[MAX_ALIAS];
bool is_granted_name args( ( CHAR_DATA *ch, char *argument ) );
bool is_granted args( ( CHAR_DATA *ch, DO_FUN *do_fun ) );
bool is_exact_name args( ( char *str, char *namelist ) );
}

Any help would be greatly appreciated...
[Go to top] top

Posted by Meerclar   USA  (733 posts)  [Biography] bio
Date Reply #1 on Wed 26 Feb 2003 07:06 PM (UTC)
Message
It acts like there an issue with the code behind the grant_data field rather than the pc_data construct in merc.h

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
[Go to top] top

Posted by Dave   Australia  (93 posts)  [Biography] bio
Date Reply #2 on Mon 03 Mar 2003 07:39 AM (UTC)
Message
Meerclar is right, and also.. assuming that's straight C, you can't define functions within a struct. "no semicolon at end of struct or u" was probably meant to be "no semicolon at end of struct or union", and looking at your pc_data struct, I see you don't have a semicolon at the end of it, so you probably missed the one on the grant_data too.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,767 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]