This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: warning: return type of main is not int
- To: jinbo21 at soback dot kornet dot nm dot kr
- Subject: Re: warning: return type of main is not int
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Fri, 16 Jan 98 17:01:49 PST
- Cc: egcs at cygnus dot com
> 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[])