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


On Fri, 16 Jan 1998, Joe Buck wrote:
...
> 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[])
...
 I'm actually a beginner.
 If so, how can I fix it?

 "Where there is a will, there is a way."  jinbo21@soback.kornet.nm.kr 
                                           kbeyl@kids.kotel.co.kr      
  For the future of you and me!            hitel: jinbo21



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