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

CF: Error in crossfire-0.95.4/random_maps/style.c ? and Fix



Hi folks,

My compiler (gcc 2.95.1 / Sparc Solaris 2.6) breaks with style.c

gcc -g -O2 -Wall  -I../include -I. -c style.c
style.c: In function `scandir':
style.c:114: `d_d' undeclared (first use in this function)
style.c:114: (Each undeclared identifier is reported only once
style.c:114: for each function it appears in.)
style.c:89: warning: unused variable `dsize'
style.c:78: warning: `save' might be used uninitialized in this function
make: *** [style.o] Error 1

I don't speak any C, but fixed something anyhow. Now the server compiles
and we can play. I must have guessed something right :)

       /* memcpy (v[i++], d, d_d->reclen); */
        memcpy (v[i++], d, d->d_reclen);

gcc -g -O2 -Wall  -I../include -I. -c style.c
style.c: In function `scandir':
style.c:89: warning: unused variable `dsize'
style.c:78: warning: `save' might be used uninitialized in this function
/usr/bin/rm -f random_map
gcc -g -O2 -Wall  -I../include -I. -c standalone.c
gcc -o random_map random_map.o room_gen_onion.o maze_gen.o reader.o floor.o wall.o
monster.o door.o decor.o exit.o treasure.o special.o style.o  standalone.o  -lm -lcrypt
-lsocket -lnsl   -L../common -lcross 

- Daniel

-- 
Dr Daniel K.Schneider, TECFA (Educational Technologies and Learning)
Faculte de Psychologie et des Sciences de l'Education, University of Geneva,
9 route de Drize, 1227 Carouge(Switzerland),
Phone: (..41) 22 705 9694, Fax: (..41) 22 342 89 24

email: Daniel.Schneider@tecfa.unige.ch
www:   http://tecfa.unige.ch/tecfa-people/schneider.html
MOO:   tecfamoo.unige.ch 7777

Starting Sept 21 1999 TECFA will be in a new location !!!
   Office #: 6359 Tel: 41 22 705 9377 Fax: 41 22 705 9379
   TECFA - FPSE - Université de Genève
   40, Bd. du Pont d'Arve, 1205 Genève
-
[you can put yourself on the announcement list only or unsubscribe altogether
by sending an email stating your wishes to crossfire-request@ifi.uio.no]