Xref: utzoo rec.games.hack:4520 comp.sources.games.bugs:1025 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!sun-barr!cs.utexas.edu!rutgers!aramis.rutgers.edu!topaz.rutgers.edu!linhart From: linhart@topaz.rutgers.edu (Mike Threepoint) Newsgroups: rec.games.hack,comp.sources.games.bugs Subject: Re: Help! Can't compile NH3.0! Message-ID: Date: 27 Jul 89 21:04:01 GMT References: <3236@uwovax.uwo.ca> Organization: Frobozz Magic Amulet of Yendor Company Lines: 27 The 2014_5001@uwovax.uwo.ca writes: > Help! I can't compile NHack3.0 under TurboC 2.0! > > Despite my undefining of TERMLIB, it still wants the TERMLIB. > After making some ad hoc changes to termcap.c, it compiled, but halted (I > disabled all the extra options) when I ran nethack.exe. Unfortunately, TERMCAP.ARC was not distributed with 3.0. It contained Fred Fish's TERMLIB.LIB sources. It was distributed with either or both of 2.2 and 2.3, however, which are available by anonymous ftp from the comp.sources.games archives on uunet.uu.net. > Some code like msdos.c is clearly not set up for TurboC (#ifdef MSDOS as the > first line doesn't work: change to #if defined(MSDOS) || defined(__MSDOS__). Instead, move the '#include "hack.h"' line to above the #ifdef MSDOS. hack.h includes config.h, where the #define MSDOS lives. > All I want is a PC binary. I cannot compile it. Has someone actually compiled > under Turbo C, or did someone just make up Makefile.tcc? No, actually Makefile.pc is the one that was made up, and it has a few problems (mkshop.c was renamed to mkroom.c, some files added later are missing). I have compiled it under Turbo C (repeatedly), and will submit a binary to comp.binaries.ibm.pc, after we release the first bugfix patch.