This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: How to compile C++ applications with eCos
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Eric Castle <ecastle at umich dot edu>
- Cc: ecos-discuss at sources dot redhat dot com, Maxwell Hunter <mhunter at umich dot edu>
- Date: Sat, 19 Jun 2004 15:59:31 +0200
- Subject: Re: [ECOS] How to compile C++ applications with eCos
- References: <E1BbSBe-000482-00@londo.lunn.ch>
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