This is the mail archive of the gcc-help@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]
Other format: [Raw text]

RE: help needed


main returns an int, but the void in the parameter list is not
necessary.  "int main()" is equivalent.

Thanks,
Lyle


-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Claudio Bley
Sent: Tuesday, June 08, 2004 4:17 AM
To: gcc-help@gcc.gnu.org
Subject: Re: help needed


> void main ()

This *needs* to be "int main(void)".



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