This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: warning: return type of main is not int



>  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[])


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]