From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24987 invoked by alias); 25 Feb 2003 00:36:48 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 24980 invoked from network); 25 Feb 2003 00:36:48 -0000 Received: from unknown (HELO traven.uol.com.br) (200.221.29.39) by 172.16.49.205 with SMTP; 25 Feb 2003 00:36:48 -0000 Received: from 200-221-239-155.internetturboadsl.speeduol.com.br ([200.221.239.155]) by traven.uol.com.br (8.9.1/8.9.1) with ESMTP id VAA01419; Mon, 24 Feb 2003 21:21:40 -0300 (BRT) Subject: Re: First basic program From: "Samuel T. Santos" To: GCC-Help Cc: bjensen@fastmail.fm In-Reply-To: References: <1045958024.1833.39.camel@samuca.br> <1046026808.2026.2.camel@samuca.br> <3E593598.1050502@fastmail.fm> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: Tue, 25 Feb 2003 00:36:00 -0000 Message-Id: <1046133510.1807.10.camel@samuca.br> Mime-Version: 1.0 X-SW-Source: 2003-02/txt/msg00236.txt.bz2 ah... Well... in Visual C++ the standard is int I think... but its I learn in the college... Em Seg, 2003-02-24 =E0s 17:56, LLeweLLyn Reese escreveu: > bjorn rohde jensen writes: >=20 > > Hi there, > >=20 > > Opinions differ, >=20 > The opinions of the C (89,95,99) and C++ standards have always been > the same: main must return int. >=20 > 'void main()' first came out of Microsoft before the first C standard > was finalized in 1988. Why it continues to come out of Microsoft > is beyond me; perhaps their coding standards are still in the > 80s. :-) >=20 > > but it has always been my understanding > > that main should be declared as returning int:) gcc seems > > to think so too. >=20 > Correct. >=20 > [Other correcct stuff about a.out snipped.]