🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #13722

Re: Lattice 5.02 stdlib.h problems

#13722
From: Juhana R{s{nen
Date: Thu, 15 Feb 1990 15:20
21 lines
1406 bytes
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
Technical Details
Message-ID: <1990Feb15.152051.12078@santra.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!sunic!tut!santra!tko-sony-8.hut.fi!justus
References: <575.25d83771@zodiac.rutgers.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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