View Single Post
Old January 19, 2020, 02:59   #1
sousedstvi
Rookie
 
Join Date: Jan 2020
Posts: 4
sousedstvi is on a distinguished road
failed to compile main.c

Hello!
I played Angband years ago when I worked with @d_m in Philly. Now I'm interested in getting back in the game, so to speak.

I got this far compiling, but don't know what to do with these errors.


Code:
christopher@fern:~/angband/angband-4.2.0$ make
Entering directory src.
cat: ../version: No such file or directory
cat: ../version: No such file or directory
cat: ../version: No such file or directory
cat: ../version: No such file or directory
Successfully generated dependencies.
cat: ../version: No such file or directory
main.c:53:1: warning: ISO C forbids empty initializer braces [-Wpedantic]
 {
 ^
main.c:52:28: error: zero or negative size array ‘modules’
 static const struct module modules[] =
                            ^~~~~~~
Failed to compile main.c!
../mk/buildsys.mk:242: recipe for target 'main.o' failed
make[3]: *** [main.o] Error 1
../mk/buildsys.mk:110: recipe for target 'all' failed
make[2]: *** [all] Error 2
mk/buildsys.mk:115: recipe for target 'subdirs' failed
make[1]: *** [subdirs] Error 2
mk/buildsys.mk:110: recipe for target 'all' failed
make: *** [all] Error 2
sousedstvi is offline   Reply With Quote