Message-ID: From: Robert Humphris To: "'djgpp AT delorie DOT com'" , "'fighteer AT cs DOT com'" Subject: RE: newbie question Date: Thu, 12 Jun 1997 17:17:03 +0100 Encoding: 20 TEXT Precedence: bulk > >> math.c: in funtion 'main': >> match.c:2: warning: return type of 'main' is not 'int' > >I would think this one would be obvious. Your C book is idiotic; valid >C or C++ code must define main with an integer return type. For the >reasons why, check out the comp.lang.c Frequently Asked Questions at Man, virtually every book that I have ever read on 'how to program C/C++' has used void main() in its code... the fact that most commercial DOS compilers seem to accept it without complaint seems to me that its a DOS thing this void main(). DJGPP is ported from one of the better operating systems ( NOTE: I said better, not best ) where the value that a process returns is often important. Rob Humphris