From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18839 invoked by alias); 10 Oct 2002 20:54:35 -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 18804 invoked from network); 10 Oct 2002 20:54:33 -0000 Received: from unknown (HELO www.fastmail.fm) (209.61.183.86) by sources.redhat.com with SMTP; 10 Oct 2002 20:54:33 -0000 Received: from www.fastmail.fm (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id 18AF46DC64; Thu, 10 Oct 2002 15:54:27 -0500 (CDT) X-Epoch: 1034283267 X-Sasl-enc: +7f3rs29P8gerVjrVPzROA Received: from fastmail.fm (x1-6-00-e0-81-03-b8-78.k35.webspeed.dk [62.242.176.171]) by www.fastmail.fm (Postfix) with ESMTP id 1B0276DAF1; Thu, 10 Oct 2002 15:54:26 -0500 (CDT) Message-ID: <3DA5E905.9050101@fastmail.fm> Date: Thu, 10 Oct 2002 13:54:00 -0000 From: bjorn rohde jensen Reply-To: bjensen@fastmail.fm User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "allstargrogg@wbcom.com" Cc: gcc-help@gcc.gnu.org Subject: Re: Mandrake 9.0 & GCC 3.2 References: <216120-2200210410203058796@wbcom.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-10/txt/msg00110.txt.bz2 Hi John, I think, the problem, you are experiencing, is due to namespaces. The standard library resides in the std namespace according to the specs, so you have to use std::cin, std::cout and so forth. The old .h headers usually dont populate the std namespace or they pull it in with a using namespace std. I must say, i am quite surprized at the idea of declaring main as void main(...), it certainly is not a standard way of doing things. Why dont you want to return a meaningfull exit code to the user/shell/whatever of your executables?? I think, you really ought to declare main as; int main(int argc,char *argv[]); Yours sincerely, Bjorn