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]

Re: C++ compiling problem


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


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