On Tue, Oct 23, 2001 at 10:49:21AM +0200, Rafael Rodr�guez Velilla wrote:
> Russell King - ARM Linux wrote:
> > On Tue, Oct 23, 2001 at 09:17:18AM +0200, Rafael Rodr�guez Velilla wrote:
> > >   I don't think that the problem is in the include file. The error happens
> > > at link time, not at compile time.
> >
> > You didn't use -D__KERNEL__ when building your user-level program, did you?
> 
>   No, I didn't. Should I?

No, you shouldn't - if it was present, I'd understand the behaviour
you're seeing.  You should check that the smbus inline functions are
present in your i2c-dev.h... You might like to try running the compile
with -v to see where gcc is searching for headers as well.

Really though, the official line is that user programs shouldn't be
including kernel headers.

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to