Odd errors

Posted by Terraco on Sun 07 Aug 2011 01:18 AM — 2 posts, 15,118 views.

#0
Hey got most the errors above fixed now I am just running into:

In file included from string.c:25:
merc.h:2355: error: syntax error before '*' token
merc.h:2355: warning: type defaults to `int' in declaration of `fpReserve'
merc.h:2355: warning: data definition has no type or storage class
merc.h:2587: error: syntax error before '*' token
merc.h:2588: error: syntax error before '*' token
merc.h:2589: error: syntax error before '*' token
merc.h:2590: error: syntax error before '*' token
merc.h:2591: error: syntax error before '*' token
merc.h:2592: error: syntax error before '*' token
merc.h:2593: error: syntax error before '*' token
string.c: In function `string_add':
string.c:168: warning: implicit declaration of function `sprintf'
make: *** [obj/string.o] Error 1

2355 extern FILE * fpReserve;
2587 char fread_letter args( ( FILE *fp ) );
2588 int fread_number args( ( FILE *fp ) );
2589 long fread_flag args( ( FILE *fp ) );
2590 char * fread_string args( ( FILE *fp ) );
2591 char * fread_string_eol args( ( FILE *fp ) );
2592 void fread_to_eol args( ( FILE *fp ) );
2593 void * alloc_mem args( ( int sMem ) );



we cant figure out the fix for these, I have checked into merc.h and string.c but nothing seems outta place
Australia Forum Administrator #1
Looks like it doesn't know about FILE. Try including stdio.h.