From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6242 invoked by alias); 7 Apr 2008 16:41:37 -0000 Received: (qmail 6185 invoked by uid 22791); 7 Apr 2008 16:41:36 -0000 X-Spam-Check-By: sourceware.org Received: from gw.ac.upc.es (HELO gw.ac.upc.edu) (147.83.30.3) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 07 Apr 2008 16:41:09 +0000 Received: from localhost (dync-30-217.ac.upc.es [147.83.30.217]) by gw.ac.upc.edu (Postfix) with ESMTP id 24DF46B0237 for ; Mon, 7 Apr 2008 18:41:06 +0200 (CEST) Date: Mon, 07 Apr 2008 18:37:00 -0000 From: Ramon Bertran Monfort To: gcc-help@gcc.gnu.org Subject: Stricter requirements for function main signature Message-ID: <20080407164106.GA11348@rbertran-workstation> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt 1.5.17+20080114 (2008-01-14) X-Editor: VIM - Vi IMproved 7.1 (2007 May 12, compiled Jan 31 2008 12:25:03) X-Operating-System: Debian GNU/Linux Kernel 2.6.24-15-generic (x86_64) Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-04/txt/msg00080.txt.bz2 Hello, I guess that this is the correct place to ask the following question. I've built a crosstoolchain for building Cell binaries on a x86 platform. The gcc version I used is gcc 4.3.0 . When I compile spu binaries with the corresponding main function signature... main(unsigned long long spe, unsigned long long argp, unsigned long long envp) ... I get an error telling me that the main signature is not correct (the first parameters must be and integer, etc...). spumain.cpp:56: error: first argument of 'int main(long long unsigned int, long long unsigned int, long long unsigned int)' should be 'int' spumain.cpp:56: error: second argument of 'int main(long long unsigned int, long long unsigned int, long long unsigned int)' should be 'char **' spumain.cpp:56: error: third argument of 'int main(long long unsigned int, long long unsigned int, long long unsigned int)' should probably be 'char **' I've seen in http://www.gnu.org/software/gcc/gcc-4.3/porting_to.html that C++ from version 4.3.0 has stricter requirements for function main signature. How is supposed to work this on a Cell platform? Thanks in advance, Salut!