Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!rochester!PT.CS.CMU.EDU!andrew.cmu.edu!jl42+ From: jl42+@andrew.cmu.edu (Jay Mathew Libove) Newsgroups: comp.sources.bugs Subject: problems compiling umoria on SCO Message-ID: Date: Tue, 10-Nov-87 15:59:45 EST Article-I.D.: andrew.AVZrt1y00VoDyUE09n Posted: Tue Nov 10 15:59:45 1987 Date-Received: Fri, 13-Nov-87 00:00:22 EST Organization: Carnegie Mellon University Lines: 43 Hello. I'm trying to compile the recently posted umoria sources on a SCO Xenix machine. In the source file "spells.c" at line 833 and line 933 I get the error: `destroy' : not a function The function "destroy" is defined in those places by being returned by the function "get_flags" as: int fire_ball(typ, dir, y, x, dam_hp, descrip) int typ, dir, y, x, dam_hp; ctype descrip; { (a bunch of local variable defines) int (*destroy)(); (some code) the get_flags call: get_flags(typ, &weapon_type, &harm_type, &destroy); (some more code) line 833: if (destroy(t_list[c_ptr->tptr.tval)) (void) delete_object(i, j); the garbage around line 933 is in the same format. Can anyone suggest to me how to get around what seems to be a limitation in my compiler? This is SCO Xenix 2.2.1 using Development System 2.1.4 on an IBM PC/AT compatible (PCs Limited AT^8) with 1.5 megs of RAM and 100 megs of hard disk; never a hardware/software incompatibility, so I'm sure it's SCO's fault :-) Thanks in advance!!! Jay Libove Arpa: jl42@andrew.cmu.edu Bitnet: jl42@drycas.bitnet UUCP: ...!{uunet, ucbvax, harvard}!andrew.cmu.edu!jl42 UUCP: ...!{pitt | bellcore} !darth!libove!libove Disclaimer: I don't tell my employers what I think... ----------------