This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Dose eCos support C++ or only C?
- To: Chris Sekula <chriss at turnpikeglobal dot com>
- Subject: Re: [ECOS] Dose eCos support C++ or only C?
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 02 Oct 2001 21:22:02 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <8669764C0A96B640AE8A6F5BB7C259D9737A@turnpdcf1.home.turnpikeglobal.com>
Chris Sekula wrote:
>
> Does eCos support C++ or only C?
>
> We've developed a protoype board based upon the Cirrus Logic EBD 7312
> dev. board. I wrote some code in C, using the eCos API, to test the
> serial ports and IO lines. Everything worked well on the board. However,
> I'd prefer to write my applications in C++. I wrote a simple serial port
> class to test the serial ports. My test program compiled using the
> arm-elf-g++ compiler without errors. However, it didn't run on the
> board. I didn't see any glaring errors in my code, so I decided to take
> my C program and compile it with the arm-elf-g++ compiler. This time,
> the C program that had worked previously didn't work on the board.
>
> Is there a simple explanation for this (eg. is there a C++ config.
> option in the Configuration tool)?
Most of the eCos kernel is written in C++. However be warned there isn't
yet support for the C++ *library*, i.e. STL, streams, etc.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine