Re: Compiling C++ modules

Christer Weinigel
2006-05-02T16:27:15Z

David Woodhouse <dwmw2@infradead.org> writes:

> On Tue, 2006-05-02 at 14:26 +0300, Avi Kivity wrote:
> > There are C++ embedded kernels in http://www.zipworld.com.au/~akpm/
> > and http://ecos.sourceware.org/, but I haven't looked at them, so I
> > can't say whether I consider them nice or not.
>
> eCos is nice enough -- because it's mostly C :)

And those parts that are C++ (from a 2 year old eCos dist) won't
compile with a modern g++. I tried to compile RedBoot on a Fedora
Core 5 system and it was a very painful experience, old deprecated C++
code was breaking all over the place. It may just have been the the
eCos configuration tool (which I belive is written in C++) that failed
to compile, but anyway, I had to use an older version of g++ and some
flag to make the old broken C++ code generate warnings, not errors.

/Christer

--
"Just how much can I get away with and still go to heaven?"

Freelance consultant specializing in device driver programming for Linux
Christer Weinigel <christer@weinigel.se> http://www.weinigel.se