Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compile problems



Some of this code obviously has only been compiled with gcc?

On an Aplha OSF/1 3.2 I get:

cc -std1 -Olimit 1000   -I../include     -DDEC -DR5_XLIB -DSMT -DLONGJUMP  -DXpm_Pix -I/local/X11R5/include     -DERIC_SERVER=0 -DFUNCPROTO=3 -DFONTDIR=\"/local/games/crossfire/fonts\" -DFONTNAME=\"crossfire\"   -DLIBDIR=\"/local/games/crossfire/lib\" -c init.c
/usr/lib/cmplrs/cc/cfe: Error: ../include/global.h, line 132: storage size for 'Gods' isn't known
   god Gods[];
 ------^
*** Exit 1
Stop.
*** Exit 1
Stop.

but gcc does not complain:

gcc  -ansi -O -g -Wall -I../include     -DDEC -DR5_XLIB -DSMT -DLONGJUMP  -DXpm_Pix -I/local/X11R5/include     -DERIC_SERVER=0 -DFUNCPROTO=3 -DFONTDIR=\"/local/games/crossfire/fonts\" -DFONTNAME=\"crossfire\"   -DLIBDIR=\"/local/games/crossfire/lib\" -c init.c

A bit later I get:

/usr/lib/cmplrs/cc/cfe: Error: rune.c, line 134: Type for this argument member is incompatible with function prototype description (3.3.16.1)
     tmp->level=SK_level(op->level);   
 --------------------------^
*** Exit 1
Stop.
*** Exit 1
Stop.

This code too works with gcc, whit a complaint:

gcc  -ansi -O -g -Wall -I../include     -DDEC -DR5_XLIB -DSMT -DLONGJUMP  -DXpm_Pix -I/local/X11R5/include     -DERIC_SERVER=0 -DFUNCPROTO=3 -DFONTDIR=\"/local/games/crossfire/fonts\" -DFONTNAME=\"crossfire\"   -DLIBDIR=\"/local/games/crossfire/lib\" -c rune.c
rune.c: In function `write_rune':
rune.c:134: warning: passing arg 1 of `SK_level' makes pointer from integer without a cast

	Morten