Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!sco!chapman From: chapman@sco.COM (Brian Chapman) Newsgroups: comp.sources.bugs Subject: Re: problems compiling umoria on SCO Message-ID: <390@sco> Date: Tue, 17-Nov-87 17:03:49 EST Article-I.D.: sco.390 Posted: Tue Nov 17 17:03:49 1987 Date-Received: Fri, 20-Nov-87 07:31:11 EST References: Reply-To: chapman@sco.COM (Brian Chapman) Organization: The Santa Cruz Operation, Inc. Lines: 24 In article jl42+@andrew.cmu.edu (Jay Mathew Libove) writes: < Hello. I'm trying to compile the recently posted umoria sources on a < SCO Xenix machine. < < I get the error: < `destroy' : not a function < < int (*destroy)(); < (some code) < get_flags(typ, &weapon_type, &harm_type, &destroy); < (some more code) < if (destroy(t_list[c_ptr->tptr.tval)) < Can anyone suggest to me how to get around what seems to be a < limitation in my compiler? < [...] I'm sure it's SCO's fault :-) correct C is: if ((*destroy)(t_list[c_ptr->tptr.tval)) destory is a function pointer. (*destory) is a function. -- Brian Chapman uunet!sco!chapman