I keep getting this error when I try to compile this code.
Administrator@HPSERVER ~
$ cd c:/aowsrc
Administrator@HPSERVER c:/aowsrc
$ make
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND act_comm.c
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND act_enter.c
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND act_info.c
act_info.c: In function `show_char_to_char_0':
act_info.c:521: warning: suggest explicit braces to avoid ambiguous `else'
act_info.c: In function `do_look':
act_info.c:1482: warning: suggest explicit braces to avoid ambiguous `else'
act_info.c:1490: warning: suggest explicit braces to avoid ambiguous `else'
act_info.c: In function `do_who':
act_info.c:3726: warning: suggest explicit braces to avoid ambiguous `else'
act_info.c:3732: warning: suggest explicit braces to avoid ambiguous `else'
act_info.c:3738: warning: suggest explicit braces to avoid ambiguous `else'
act_info.c: In function `do_consider':
act_info.c:4017: warning: type defaults to `int' in declaration of `xp_compute'
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND act_move.c
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND act_obj.c
act_obj.c: In function `do_put':
act_obj.c:494: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c:526: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c: In function `get_cost':
act_obj.c:2232: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c: In function `do_list':
act_obj.c:2645: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND act_wiz.c
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND alias.c
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND ban.c
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND bit.c
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND comm.c
comm.c:80: warning: `FNDELAY' redefined
/usr/include/sys/fcntl.h:81: warning: this is the location of the previous defin
ition
comm.c: In function `game_loop_unix':
comm.c:244: warning: unused variable `pattr'
comm.c:243: warning: unused variable `thread'
comm.c: In function `read_from_descriptor':
comm.c:601: warning: implicit declaration of function `read'
comm.c: In function `process_output':
comm.c:729: warning: suggest explicit braces to avoid ambiguous `else'
comm.c: In function `write_to_descriptor':
comm.c:1466: warning: implicit declaration of function `write'
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND const.c
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND db.c
db.c:49: conflicting types for `srandom'
/usr/include/stdlib.h:156: previous declaration of `srandom'
db.c: In function `load_topplayers':
db.c:430: warning: suggest explicit braces to avoid ambiguous `else'
db.c: In function `assign_area_vnum':
db.c:1017: warning: suggest explicit braces to avoid ambiguous `else'
db.c: In function `area_update':
db.c:1875: warning: unused variable `pRoomIndex'
make: *** [db.o] Error 1
Administrator@HPSERVER c:/aowsrc
$
Running Windows 2000, any help would be great.
Administrator@HPSERVER ~
$ cd c:/aowsrc
Administrator@HPSERVER c:/aowsrc
$ make
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND act_comm.c
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND act_enter.c
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND act_info.c
act_info.c: In function `show_char_to_char_0':
act_info.c:521: warning: suggest explicit braces to avoid ambiguous `else'
act_info.c: In function `do_look':
act_info.c:1482: warning: suggest explicit braces to avoid ambiguous `else'
act_info.c:1490: warning: suggest explicit braces to avoid ambiguous `else'
act_info.c: In function `do_who':
act_info.c:3726: warning: suggest explicit braces to avoid ambiguous `else'
act_info.c:3732: warning: suggest explicit braces to avoid ambiguous `else'
act_info.c:3738: warning: suggest explicit braces to avoid ambiguous `else'
act_info.c: In function `do_consider':
act_info.c:4017: warning: type defaults to `int' in declaration of `xp_compute'
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND act_move.c
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND act_obj.c
act_obj.c: In function `do_put':
act_obj.c:494: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c:526: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c: In function `get_cost':
act_obj.c:2232: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c: In function `do_list':
act_obj.c:2645: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND act_wiz.c
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND alias.c
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND ban.c
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND bit.c
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND comm.c
comm.c:80: warning: `FNDELAY' redefined
/usr/include/sys/fcntl.h:81: warning: this is the location of the previous defin
ition
comm.c: In function `game_loop_unix':
comm.c:244: warning: unused variable `pattr'
comm.c:243: warning: unused variable `thread'
comm.c: In function `read_from_descriptor':
comm.c:601: warning: implicit declaration of function `read'
comm.c: In function `process_output':
comm.c:729: warning: suggest explicit braces to avoid ambiguous `else'
comm.c: In function `write_to_descriptor':
comm.c:1466: warning: implicit declaration of function `write'
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND const.c
gcc -c -Wall -D_AOW_CODER -O -g -DNOCRYPT -DOLD_RAND db.c
db.c:49: conflicting types for `srandom'
/usr/include/stdlib.h:156: previous declaration of `srandom'
db.c: In function `load_topplayers':
db.c:430: warning: suggest explicit braces to avoid ambiguous `else'
db.c: In function `assign_area_vnum':
db.c:1017: warning: suggest explicit braces to avoid ambiguous `else'
db.c: In function `area_update':
db.c:1875: warning: unused variable `pRoomIndex'
make: *** [db.o] Error 1
Administrator@HPSERVER c:/aowsrc
$
Running Windows 2000, any help would be great.