Xref: utzoo comp.sys.amiga.tech:3808 comp.sys.amiga:29524 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!athena.mit.edu!rlcarr From: rlcarr@athena.mit.edu (Rich Carreiro) Newsgroups: comp.sys.amiga.tech,comp.sys.amiga Subject: Lattice prototype bugs? Summary: 2 potential errors Message-ID: <9334@bloom-beacon.MIT.EDU> Date: 19 Feb 89 04:58:01 GMT Sender: daemon@bloom-beacon.MIT.EDU Reply-To: rlcarr@athena.mit.edu (Rich Carreiro) Followup-To: comp.sys.amiga.tech Organization: Massachusetts Institute of Technology Lines: 30 I have discovered what I believe to be some errors in the Lattice C 5.02 prototype files. 1) proto/icon.h has AllocWBObject() prototyped as being 'struct WBObject' and AddFreeList() is prototyped as 'long' HOWEVER, in the workbench/icon.h include file, they are declared as struct WBObject *AllocWBObject(); VOID AddFreeList(); I modified proto/icon.h and the Error 72's I had went away. 2) stdlib.h DOES NOT have a prototype for rand(). As a result, the linker won't pick @rand out of lcr.lib when using the -rr option to lc (it will pick _rand out of lc.lib, though). Are these legit bugs or am I being naive? All answers appreciated! ARPA: rlcarr@athena.mit.edu UUCP: {wherever}!mit-eddie!mit-athena!rlcarr BITNET: rlcarr%athena.mit.edu@MITVMA.mit.edu ******************************************************************************* * Rich Carreiro "Back off man, I'm a scientist." * * rlcarr@athena.mit.edu - Dr. Peter Venkman * *******************************************************************************