[ECOS] Dose eCos support C++ or only C?
Jonathan Larmour
jlarmour@redhat.com
Tue Oct 2 13:22:00 GMT 2001
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
More information about the Ecos-discuss
mailing list