From: paul k. <pau...@xs...> - 2005-05-02 11:38:05
|
Hi Michael, I haven't tested your test program, but I think it is similar to the test program I started with. I know that you are at least missing the following include. #include <linux/compiler.h> This include is required for i2c.h to compile correctly. It should however be noted that this compiler.h creates different defines based on the fact if it compiling for kernel space or user space. We need to compile for user space. My guess is, that on your system you are somehow by default compiling for kernel space. The problem is I don't know to switch between kernel and user space compilation. Can you send your compile errors? regards, Paul Michael Reinelt wrote: >Hi there, > >I prepared a superb fully-featured massively complext i2c test program >to verify wether I cannot compile it or not. Well, the latter: I can not. > >I tried on another notebook (debian sarge, too), and I get the same errors. > >Here's the test program: > >#include <stdlib.h> >#include <stdio.h> > >#include <linux/i2c.h> > > >int main (int argc, char *argv[]) >{ > printf ("Hello, world\n"); >} > > > > |