www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/25/07:33:27

From: chris_mears AT softhome DOT net (Chris Mears)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Rhide 1.4
Organization: CHOAM
Message-ID: <38163869.2733978@news.bigpond.com>
References: <c5yQ3.2383$we DOT 3631 AT newsfeeds DOT bigpond DOT com> <19991024031801 DOT 09189 DOT 00000463 AT ng-cq1 DOT aol DOT com> <8fWQ3.321$f3 DOT 719 AT news1 DOT iquest DOT net>
X-Newsreader: Forte Agent 1.5/32.452
MIME-Version: 1.0
Lines: 16
Date: Mon, 25 Oct 1999 11:03:47 GMT
NNTP-Posting-Host: 139.134.193.190
X-Trace: newsfeeds.bigpond.com 940849177 139.134.193.190 (Mon, 25 Oct 1999 20:59:37 EST)
NNTP-Posting-Date: Mon, 25 Oct 1999 20:59:37 EST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Mon, 25 Oct 1999 05:33:07 -0500, "AtmaMidnight"
<atma AT mailandnews DOT com> wrote:

>If you are saving the file as a .cpp, gcc assumes it is a c++ program.  If
>you RETURN(0) then you need to have int main().  Since it is a c++ program
>though, you don't even need to return a value...It might be easier just to
>use void main() and then skip the RETURN(0).
>
>Hope that helps...
>

I don't know as much about C++ as I do about C, but I am almost
certain that main *must* return an int, not void.  This isn't the
problem for the OP anyway - for that bit, do as Johan Venter says and
read the FAQ, section 8.7.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019