Russell King - ARM Linux wrote: > > 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.
Agreed. But if your cross dev headers aren't up to date, you may sometimes need to do this to move forward w/o making a complete mess of your cross dev environment attempting to add what's missing. : ) However, in this case, my money is currently on default optimization snafu! Make sure you're not building with "-O0". > _______________________________________________ > http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm > Please visit the above address for information on this list. -- Regards, George _______________________________________________ http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm Please visit the above address for information on this list.
