Mail Archives: djgpp/1997/06/12/12:13:03
<Snip>
>
>> 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
- Raw text -