This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Writing C++ applications
- From: Andreas Bürgel <ab at genologic dot de>
- To: Christoph Csebits <christoph dot csebits at frequentis dot com>, ecos-discuss at sources dot redhat dot com
- Date: Wed, 12 Dec 2001 16:59:37 +0100
- Subject: Re: [ECOS] Writing C++ applications
- Organization: GenoLogic GmbH, Dortmund
- References: <20011212162100.A7061@frequentis.com>
Christoph Csebits wrote:
>
> hi
>
> After working some time porting eCos to my
> platform (PowerPC), i am movin some layers up:
>
> i am not sure about writing C++ apps in eCos.
I'm developing applications with C++ for eCos and it works fine.
> The cyg_user_start (in hello.c) is not linked
> into the application, instead i have the empty
> function from packages/infra/current/src/userstart.cxx.
Did you forget those extern "C" definition around cyg_user_start?
#ifdef __cplusplus
extern "C" {
#endif
void cyg_user_start ( void) {
...
}
#ifdef __cplusplus
}
#endif
--
-----------------------------------------------------
i.A. Andreas Bürgel GenoLogic GmbH
Software Engineer Joseph-von-Fraunhofer-Str. 13
D-44227 DORTMUND
Germany
ab@genologic.de phone +49 (0) 231/477349-0
fax +49 (0) 231/4761234