Path: 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 I was using Lattice 5.02 and I was compiling a program like the following: #include #include .. 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)