Hello, On Fri, Jan 20, 2023 at 09:19:49PM -0800, Nathan via Cygwin wrote: > The file here for a game I wanted to use is > http://www.ifarchive.org/if-archive/games/source/Adventure2.5.tar.gz and it > all compiled but one file getting the error is init.c as follows: > > gcc -O -c init.c > > init.c:167:1: warning: return type defaults to 'int' [-Wimplicit-int] > 167 | initialise() { > | ^~~~~~~~~~ > > init.c: In function 'initialise': > init.c:169:13: warning: implicit declaration of function 'quick_init' > [-Wimplicit-function-declaration] > 169 | if(!quick_init()){raw_init(); report(); quick_save();} > | ^~~~~~~~~~ > > init.c:169:27: warning: implicit declaration of function 'raw_init' > [-Wimplicit-function-declaration] > 169 | if(!quick_init()){raw_init(); report(); quick_save();} > | ^~~~~~~~ > [...] > init.c: At top level: > init.c:173:8: warning: return type defaults to 'int' [-Wimplicit-int] > 173 | static raw_init() { > | ^~~~~~~~ > > init.c:173:8: error: static declaration of 'raw_init' follows non-static > declaration > init.c:169:27: note: previous implicit declaration of 'raw_init' with type > 'int()' > 169 | if(!quick_init()){raw_init(); report(); quick_save();} > | ^~~~~~~~ [...] > so any tips or suggestions to fix this would be appreciated. I guess that this code was written to work older compilers, that allowed different (looser) constructs. The problem is not Cygwin, but rather the compiler installed with Cygwin. For this reason, what follows is off-topic here. The attached patch should allow compilation with today's compilers. Copy the file in the same directory as the sources and run: $ patch < adventure.patch I hope this helps. Best regards, -- Arrigo