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: <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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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" 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.