cvs.gedasymbols.org/archives/browse.cgi | search |
From: | Rodeo Red <rodeored AT netstep DOT net> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | return type for `main' changed to `int' |
Date: | Sun, 17 Oct 1999 11:16:11 -0400 |
Organization: | Church of Evangelical Environmental Extremism |
Lines: | 40 |
Message-ID: | <84EFC73E5BDD300C.85A7FCC32BD1270B.F7CB654E8161FA9A@lp.airnews.net> |
X-Orig-Message-ID: | <3809E839 DOT 28424BFA AT netstep DOT net> |
Abuse-Reports-To: | support at netstep.net to report improper postings |
NNTP-Proxy-Relay: | library2.airnews.net |
NNTP-Posting-Time: | Sun Oct 17 10:15:57 1999 |
NNTP-Posting-Host: | !e*T`-@[/ZhN&'4 (Encoded at Airnews!) |
Mime-Version: | 1.0 |
X-Mailer: | Mozilla 4.5 [en] (Win98; I) |
X-Accept-Language: | en |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
I got very frustrated and erased djgpp. Now I'm starting over with the newer version. I've decided not to use rhide until I can get djgpp to work without rhide. This command line: gcc -c -Wall hello.cpp is supposed to produce the object file hello.o, but doesn't . Instead I get this message: hello.cpp:4: return type for `main' changed to `int' What does this mean ? here is hello.cpp: #include <iostream.h> void main () { cout <<"Hello world!\n"; } ---------------------------------------------------------------- What happened when I went to the faq: I searched for "return type for `main'" - no results I searched for "return type"- found section 22.24 "What should the main function return in a C program? " Does not seem to apply because I'm using C++ Rodeo Red
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |