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: C++ application support


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


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