🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Lattice 5.02 stdlib.h problems

#13808
From: wall
Date: Tue, 13 Feb 1990 16:36
22 lines
959 bytes
     I was using Lattice 5.02 and I was compiling a program like the 
following:

#include <stdio.h>
#include <stdlib.h>

..

main()
{
	....
   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?
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?

				Thanks a lot,
				  Sean Wall
				(WALL@CANCER)
Technical Details
Message-ID: <575.25d83771@zodiac.rutgers.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!elbereth.rutgers.edu!zodiac!wall

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!elbereth.rutgers.edu!zodiac!wall
From: wall@zodiac.rutgers.edu
Newsgroups: comp.sys.amiga.tech
Subject: Lattice 5.02 stdlib.h problems
Message-ID: <575.25d83771@zodiac.rutgers.edu>
Date: 13 Feb 90 16:36:00 GMT
Organization: Rutgers University - CCIS
Lines: 22