View Single Post
Old May 5, 2021, 19:04   #2
Julian
Apprentice
 
Join Date: Apr 2021
Posts: 89
Julian is on a distinguished road
Quote:
Originally Posted by lea2501 View Post
Hi! i wanted to try out the first Angband versions, i downloaded the source code for 2.4.frog-know (i think its the first public version) from http://rephial.org/release/2.4.fk and typing:

Code:
$ make
i get:

Code:
gcc -g -fwritable-strings -DLIBDIR=\"/home/lea/games/roguelikes/angband/2.4.fk/angband/lib\"  -c /home/lea/games/roguelikes/angband/2.4.fk/angband/src/main.c -o /home/lea/games/roguelikes/angband/2.4.fk/angband/obj/main.o
gcc: error: unrecognized command-line option ‘-fwritable-strings’; did you mean ‘-Wwrite-strings’?
make: *** [Makefile:43: /home/lea/games/roguelikes/angband/2.4.fk/angband/obj/main.o] Error 1
Maybe someone knows how to make it compile in newer linux distros, im trying in a up-to-date arch linux.
That’s gonna be tricky to fix without some serious code surgery. Writing to constant strings hasn’t been legal C for a long, long, time. (Probably because it’s a huge source of potential problems.)

You’d likely have better luck with Ben’s versions.
Julian is offline   Reply With Quote