This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: C++ application support
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: Robert Allen <rba_ny at yahoo dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: 25 May 2004 09:51:08 +0100
- Subject: Re: [ECOS] C++ application support
- References: <20040521174046.56376.qmail@web90010.mail.scd.yahoo.com>
Robert Allen <rba_ny@yahoo.com> writes:
> Hi,
> I'm just wondering what should be done if I want to
> write my application in C++. I can use extern C
> linkage, but should I use this for all the APIs that
> I'm calling from my function? And also should I
> include any specific libraries.... finally, what
> should be the compiler flags?
All the eCos headers should be compatible with both C and C++ without
you needing to do anything. eCos is already written in a mixture of C
and C++ and the necessary extern "C" directives are already present.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss