This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: C++ compiling problem
- To: Tony Ko <nhko at gctsemi dot com>
- Subject: Re: [ECOS] C++ compiling problem
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Thu, 04 Oct 2001 14:44:29 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <0F61D7853F0B434A90567901F0D604EF080425@gctsemi.gctsemi.com>
Tony Ko wrote:
>
> hi.
> I added new file XXX.cxx , XXX.hxx to eCos-1.3.1 package.
> but some weird compile error happened.
> Error message shows errors happened at
> "Install_Dir/include/lib/libkern/libkern.h ".
>
> but when C file added , compiling is OK.
>
> So are any additional options needed for compiling c++ source file????
Firstly make sure the file is compiled with -D_KERNEL -D__ECOS. If that
doesn't help, check that the functions you are calling are prototyped in
the headers with either externC, __externC or are wrapped with
__BEGIN_DECLS/__END_DECLS pairs. If they aren't let us know as they should
be fixed.
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