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: Writing C++ applications


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


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