05 Jan, 2010, Greggles wrote in the 1st comment:
Votes: 0
Whenever I try to compile I get this error, I don't know why as I haven't edited these files that would change these at all.

interp.c:546: error: expected identifier or ( before if
interp.c:586: error: cmd undeclared here (not in a function)
interp.c:586: error: expected ) before . token
interp.c:588: warning: data definition has no type or storage class
interp.c:588: warning: type defaults to int in declaration of tail_chain
interp.c:588: error: conflicting types for tail_chain
merc.h:2554: error: previous declaration of tail_chain was here
interp.c:589: error: expected identifier or ( before return
interp.c:590: error: expected identifier or ( before } token
make: *** [interp.o] Error 1


Heres interp.c (atleast the segments that supposedly contains errors, I marked the "problem lines")
* Character not in position for command?
*/
if ( ch->position < cmd_table[cmd].position ) /*546*/
{
switch( ch->position )
{
case POS_DEAD:
send_to_char( "Lie still; you are DEAD.\n\r", ch );
break;

case POS_MORTAL:
case POS_INCAP:
send_to_char( "You are hurt far too bad for that.\n\r", ch );
break;

case POS_STUNNED:
send_to_char( "You are too stunned to do that.\n\r", ch );
break;

case POS_SLEEPING:
send_to_char( "In your dreams, or what?\n\r", ch );
break;

case POS_RESTING:
send_to_char( "Nah… You feel too relaxed…\n\r", ch);
break;

case POS_SITTING:
send_to_char( "Better stand up first.\n\r",ch);
break;

case POS_FIGHTING:
send_to_char( "No way! You are still fighting!\n\r", ch);
break;

}
return;
}

/*
* Dispatch the command.
*/
(*cmd_table[cmd].do_fun) ( ch, argument ); /*586*/

tail_chain( ); /*588*/
return; /*589*/
} /*590*/


and merc.h's "bad segment"
bool    str_suffix      args( ( const char *astr, const char *bstr ) );
char * capitalize args( ( const char *str ) );
void append_file args( ( CHAR_DATA *ch, char *file, char *str ) );
void bug args( ( const char *str, int param ) );
void log_string args( ( const char *str ) );
void tail_chain args( ( void ) ); /*2554*/



any ideas on what could have caused this, when researching i've noticed some code bases have removed the tail_chain function, before taking the action to remove the function I decided i'd come here and ask advice first.
05 Jan, 2010, Tyche wrote in the 2nd comment:
Votes: 0
The error is before line 546. Possibly an unclosed parentheses or bracket.
05 Jan, 2010, Greggles wrote in the 3rd comment:
Votes: 0
After scouring the code before it i did notice a missing {. Thanks
0.0/3