Re: Compiling C++ modules

From: Christer Weinigel
Date: Tue May 02 2006 - 12:26:59 EST


David Woodhouse <dwmw2@xxxxxxxxxxxxx> 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@xxxxxxxxxxx> http://www.weinigel.se
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/