Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucsd!sdcc6!sdcc10!bruno From: bruno@sdcc10.ucsd.EDU (Bruce W. Mohler) Newsgroups: comp.sources.games.bugs Subject: Re: NetHack 3.0 compile error in objnam.c(160) Summary: Here's the fix Keywords: NetHack 3.0 objnam.c Message-ID: <130@sdcc10.ucsd.EDU> Date: 29 Jul 89 03:57:34 GMT References: <129@sdcc10.ucsd.EDU> Organization: Pacific*Bell, San Diego, CA Lines: 28 In article <129@sdcc10.ucsd.EDU>, bruno@sdcc10.ucsd.EDU (Bruce W. Mohler) writes: > Environment: Compaq 386/20 running Xenix 2.3.1 with 2.2 Dev Sys > > Compiling NetHack 3.0 yields a compile-time error in the > file objnam.c line 160. This is the message: > > objnam.c(160) func: not a function > > This is the function in question: > Boy, talk about *good* response time! It was only an hour or two after I'd submitted my article that Janet Walz (walz@mimsy.umd.edu) was back to me with a fix! (Here it is:) -=- As multiple other people running Xenix have observed, func is a function -=- pointer, not a function, which is fine with ANSI compilers and pcc but not -=- Xenix. Use -=- str = (*func)(obj); -=- -=- Thanks again, Janet! Maybe SCO will have this fixed in their new Dev System... -- Bruce W. Mohler Systems Programmer (aka Staff Analyst) bruno@sdcc10.ucsd.edu voice: 619/586-2218