Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!mips!decwrl!sgi!llustig!objy!objy!peter From: peter@objy.objy.com (Peter Moore) Newsgroups: comp.unix.ultrix Subject: Re: Need help with "C" errors Message-ID: <1990Oct3.164930@objy.objy.com> Date: 3 Oct 90 23:49:30 GMT References: <22100017@ux1.cso.uiuc.edu> <1990Oct3.111500@dodads.dco.dec.com> Sender: news@objy.com Reply-To: peter@objy.com Organization: Objectivity Inc. Lines: 19 << The original author was having trouble with a parameter that was declared void * >> I have found that under Ultrix 3.x, the C compiler does not properly handle void * parameters. The code: foo(a) void *a; { *(int *) = 5; } will give error messages about `a' being undefined. It looks like it recognizes void only sort of as a type. It accepts the declaration, but doesn't actually define a variable. There is an easy workaround, use char * instead of void *. Peter Moore peter@objy.com