From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2103 invoked by alias); 19 Jun 2004 13:59:50 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 2094 invoked from network); 19 Jun 2004 13:59:49 -0000 Received: from unknown (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org with SMTP; 19 Jun 2004 13:59:49 -0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1BbgNX-0007UO-00; Sat, 19 Jun 2004 15:59:31 +0200 Date: Sat, 19 Jun 2004 13:59:00 -0000 To: Eric Castle Cc: ecos-discuss@sources.redhat.com, Maxwell Hunter Message-ID: <20040619135931.GB15354@lunn.ch> Mail-Followup-To: Eric Castle , ecos-discuss@sources.redhat.com, Maxwell Hunter References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6+20040523i From: Andrew Lunn Subject: Re: [ECOS] How to compile C++ applications with eCos X-SW-Source: 2004-06/txt/msg00187.txt.bz2 On Fri, Jun 18, 2004 at 06:50:08PM -0400, Eric Castle wrote: > > Hi everyone, > > Currently I'm successfully compiling C programs for our Axiom board. Here's > a sample compile line: > > powerpc-eabi-gcc -g -I ../ecosMod060904/ecos_install/include/ start.c > alarms.c experiment.c i2c.c housekeeping.c flash.c -L > ../ecosMod060904/ecos_install/lib/ -Ttarget.ld -nostdlib -o start *-gcc is just a wrapper which calls the correct compile for the language indicated by the extension. ie if the extension is .c it will call the c compiler, if its .cxx it will call the c++ compiler, if its .f it will call the fortran compiler if it was available when gcc was compiled etc. So use the same command line, it should work. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss