warning: return type of main is not int

Byeong-ryeol Kim jinbo21@soback.kornet.nm.kr
Fri Jan 16 20:09:00 GMT 1998


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




More information about the Gcc mailing list