[ILUG] Re: [OT] gcc option: accept void main?

Cormac McClean cmcclean at ait.ie
Wed Apr 18 15:54:52 IST 2001


P.S. Technically, these are (simple) C++ programs, and I use g++ to compile
them, but that's irrelevant because g++ is just gcc with C++ options.
Anyway, that's the reason for the .cpp extension in the example.

Regards,
Cormac.

> final.cpp: In function `int main(...)':
> final.cpp:98: `return' with no value, in function returning non-void




More information about the ILUG mailing list