delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/28/09:00:20

From: dontmailme AT iname DOT com (Steamer)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: main warnings
Date: Sat, 28 Oct 2000 12:50:15 GMT
Organization: always disorganized
Lines: 10
Message-ID: <39facb81.19140776@news.freeserve.net>
References: <F68M9wGmAf0MjkatwD400001158 AT hotmail DOT com>
NNTP-Posting-Host: modem-73.nevada.dialup.pol.co.uk
X-Trace: news6.svr.pol.co.uk 972737416 22747 62.137.79.73 (28 Oct 2000 12:50:16 GMT)
NNTP-Posting-Date: 28 Oct 2000 12:50:16 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Free Agent 1.11/32.235
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

César Martín Cabello wrote:

>       I´m a recent djgpp user and i'm still setting the RHIDE config, and i 
> have a little problem, I'm using ver 2.03 and i can´t find the -Wmain flag, 
> so when a create a void returning main, the RHIDE compiler says "Hey 
> bastard, thats an error" (not exactly that way, but more or less the same) 
> and i have to declare the main as int returning.

ANSI C and ANSI C++ both require the return type of main() to be int.
What's so difficult about changing your code?

- Raw text -


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