Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!sunic!tut!santra!tko-sony-8.hut.fi!justus From: justus@tko-sony-8.hut.fi (Juhana R{s{nen) Newsgroups: comp.sys.amiga.tech Subject: Re: Lattice 5.02 stdlib.h problems Message-ID: <1990Feb15.152051.12078@santra.uucp> Date: 15 Feb 90 15:20:51 GMT References: <575.25d83771@zodiac.rutgers.edu> Sender: news@santra.uucp (Cnews - USENET news system) Reply-To: justus@niksula.hut.fi (Juhana R{s{nen) Organization: Helsinki University of Technology, Finland Lines: 21 In article <575.25d83771@zodiac.rutgers.edu> wall@zodiac.rutgers.edu writes: > > The compiler kept giving me a return type not defined for main. I traced >this to some lines in stdlib.h which typed main as 'void'. (As well >as defining its parameters argc and argv) My question is, is this right? You're right. I had similar problems with my 5.02. >I've never seen main typed in ANY of the other headers, so why here? Is >there some reason? I've used compilers on other machines that do not >type main at all in any of the headers. What's going on? I don't think there's any particular reason for the prototype to be there (and as far as I recall, it has been removed in 5.04). Your program should work all right if you remove the prototype. > Thanks a lot, > Sean Wall > (WALL@CANCER) Juhana R{s{nen / niksula.hut.fi