[ECOS] C++ compiling problem
Jonathan Larmour
jlarmour@redhat.com
Thu Oct 4 06:44:00 GMT 2001
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
More information about the Ecos-discuss
mailing list