Re: include file problem (with patch)

From: Andries Brouwer (aeb@veritas.com)
Date: Mon Jun 05 2000 - 02:23:46 EST


> S. Baker (sbaker@erols.com) wrote:

> > > While trying to compile the following sample program using
> > > 'gcc -o testbo testbo.c' I encountered a problem in
> > > include/linux/byteorder/swab.h that causes testbo not to
> > > compile.

> "Khimenko Victor" <khim@sch57.msk.ru> wrote:

> > It's not bug. It's feature. In fact even two features:
> > 1. Any program with kernel header usage is broken by definition. If
> > it does not compile - it's program bug, not kernel one.
> > 2. extern inline will be inlined ONLY when optimization is enabled -
> > do not even try to compile them without optimization (it's even
> > in some man pages).
> >

On Sun, Jun 04, 2000 at 10:30:02PM -0400, S. Baker wrote:

> Claiming that a bug is a feature is an interesting position, but
> this is still a bug. You should look closer at the problem, for a
> better understanding of what is going on. I fully understand
> that inline functions don't get compiled without optimization.
> What I also understand, and I think you missed, is that when
> optimization is NOT turned on, ...

Victor gave a perfect answer.
You forgot to read his part 1. Your program is broken already
because it includes kernel headers.

Andries

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:20 EST