| delorie.com/archives/browse.cgi | search |
| From: | JeLlyFish DOT software AT gmx DOT net (Vinzent Hoefler) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: return type for `main' changed to `int' |
| Date: | Sun, 17 Oct 1999 18:48:14 GMT |
| Organization: | JeLlyFish software |
| Lines: | 15 |
| Message-ID: | <7ud5n4$sht$1@news00.btx.dtag.de> |
| References: | <84EFC73E5BDD300C DOT 85A7FCC32BD1270B DOT F7CB654E8161FA9A AT lp DOT airnews DOT net> <380a163a AT news DOT xenologics DOT com> |
| Mime-Version: | 1.0 |
| X-Trace: | news00.btx.dtag.de 940186148 29245 777000109768-0001 991017 18:49:08 |
| X-Complaints-To: | abuse AT t-online DOT de |
| X-Sender: | 777000109768-0001 AT t-dialin DOT net |
| X-Newsreader: | Forte Free Agent 1.11/16.235 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
"Oliver Roese" <oroese AT edina DOT xnc DOT com> wrote:
> implementations shall allow both of the following definitions of main:
> int main() { /* ... */ }
> and
> int main(int argc, char* argv[]) { /* ... */ }
[...]
>According to this, you were right to report this warning as an anomaly for a cpp-program.
Sorry, but the warning is correct. He did define "void main()" and
that's neither correct C nor C++.
Vinzent.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |