Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!cbosgd!ucbvax!hplabs!hp-sdd!adp From: adp@hp-sdd.UUCP (Tony Parkhurst) Newsgroups: net.micro.amiga Subject: Re: YABoing problem? Message-ID: <455@hp-sdd.UUCP> Date: Fri, 26-Sep-86 16:53:17 EDT Article-I.D.: hp-sdd.455 Posted: Fri Sep 26 16:53:17 1986 Date-Received: Tue, 30-Sep-86 04:29:50 EDT References: <343@sivax.UUCP> Reply-To: adp@hp-sdd.UUCP (Tony Parkhurst) Distribution: net Organization: Hewlett Packard, San Diego Lines: 26 In article <343@sivax.UUCP> phil@sivax.UUCP (Phil Hunt) writes: > I grabbed the c program YABoing off the net and tried to compile it with >Lattice 'C' V3.03. > I also recieved an ERROR 30: Pointer error on line 75. > Anyone know what happened??? It seems that Lattice doesn't like assigning contants to pointers. The line looks like: struct Custom *cstm = 0x0fe2ba; (or something) The way I fixed it was: struct Custom *cstm = (struct Custom *) 0x0fe2ba; ^^^^^^^^^^^^^^^^^ Which just tells the compiler that the constant is of the correct pointer type. Lattice compiled this just fine. Hope this helps. -- ******************************************************************************* * Tony Parkhurst -- {hplabs|sdcsvax|ncr-sd|hpfcla|ihnp4}!hp-sdd!adp * * OR hp-sdd!adp@nosc.arpa * *******************************************************************************