warning: return type of main is not int

Joe Buck jbuck@synopsys.com
Fri Jan 16 19:49:00 GMT 1998


>  I often met this warning after installing egcs on rh 5.0.
>  Is this harmless?

The C++ language standard says that main returns int.  The compiler
is warning you that what you are typing is not legal C++.

> void main(int argc, char *argv[])



More information about the Gcc mailing list