Ok, at least now i know how to change my dos window size, thanks, it helped
make > make_log.txt makes a log but it dosent log any errors.. oh well, at least now i can do this!:
$ make
make swrip
make[1]: Entering directory `/home/admin/releaserip/src'
gcc -c -g3 -Wall -DNOCRYPT -DREQUESTS save.c
save.c: In function `load_corpses':
save.c:2133: error: `DIR' undeclared (first use in this function)
save.c:2133: error: (Each undeclared identifier is reported only once
save.c:2133: error: for each function it appears in.)
save.c:2133: error: `dp' undeclared (first use in this function)
save.c:2139: warning: implicit declaration of function `opendir'
save.c:2147: warning: implicit declaration of function `readdir'
save.c:2147: warning: assignment makes pointer from integer without a cast
save.c:2149: error: dereferencing pointer to incomplete type
save.c:2151: error: dereferencing pointer to incomplete type
save.c:2192: warning: implicit declaration of function `closedir'
save.c: In function `load_storerooms':
save.c:2199: error: `DIR' undeclared (first use in this function)
save.c:2199: error: `dp' undeclared (first use in this function)
save.c:2214: warning: assignment makes pointer from integer without a cast
save.c:2216: error: dereferencing pointer to incomplete type
save.c:2223: error: dereferencing pointer to incomplete type
save.c:2231: error: dereferencing pointer to incomplete type
save.c:2268: error: dereferencing pointer to incomplete type
save.c:2281: error: dereferencing pointer to incomplete type
save.c: In function `load_vendors':
save.c:2347: error: `DIR' undeclared (first use in this function)
save.c:2347: error: `dp' undeclared (first use in this function)
save.c:2362: warning: assignment makes pointer from integer without a cast
save.c:2364: error: dereferencing pointer to incomplete type
save.c:2366: error: dereferencing pointer to incomplete type
make[1]: *** [save.o] Error 1
make[1]: Leaving directory `/home/admin/releaserip/src'
make: *** [all] Error 2
$
void load_corpses( void )
{
DIR *dp;// line 2133
struct direct *de;
extern FILE *fpArea;
extern char strArea[MAX_INPUT_LENGTH];
extern int falling;
if ( !(dp = opendir(CORPSE_DIR)) )// line 2139
{
bug( "Load_corpses: can't open CORPSE_DIR", 0);
perror(CORPSE_DIR);
return;
}
falling = 1; /* Arbitrary, must be >0 though. */
while ( (de = readdir(dp)) != NULL )// line2147
{
if ( de->d_name[0] != '.' )// line 2149
{
sprintf(strArea, "%s%s", CORPSE_DIR, de->d_name );//2151
fprintf(stderr, "Corpse -> %s\n", strArea);
if ( !(fpArea = fopen(strArea, "r")) )
{
perror(strArea);
continue;
}
for ( ; ; )
{
char letter;
char *word;
letter = fread_letter( fpArea );
if ( letter == '*' )
{
fread_to_eol(fpArea);
continue;
}
if ( letter != '#' )
{
bug( "Load_corpses: # not found.", 0 );
break;
}
word = fread_word( fpArea );
if ( !str_cmp(word, "CORPSE" ) )
fread_obj( NULL, fpArea, OS_CORPSE );
else if ( !str_cmp(word, "OBJECT" ) )
fread_obj( NULL, fpArea, OS_CARRY );
else if ( !str_cmp( word, "END" ) )
break;
else
{
bug( "Load_corpses: bad section.", 0 );
break;
}
}
fclose(fpArea);
}
}
fpArea = NULL;
strcpy(strArea, "$");
closedir(dp);//2192
falling = 0;
return;
}
the other functions are just like this.. i have no idea what this means and i only messed with an include any ideas?
at the top of this file and on fight.c i had an error that sys/dir.h was missing.. i ran a search for dir.h in cygwin and found one in "usr/include/mingw/" but all it said was that it was obsoleate and to use io.h instead.. so i changed the includes to io.h istead and it compiled fine it it got here, dose this have anything do do with my problem?
source is for SWRiP codebase, it was labled FUSS.. as soon as i get it to work in cygwin il zip it up for others to download/use |