This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to compile C++ applications with eCos


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]