From: Michael R. <re...@eu...> - 2005-05-02 15:24:47
|
Hi Paul, thanks for your quick response. paul kamphuis schrieb: > 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> ok, I've added this one. But it doesn't help. > 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. I don't think that I'm compiling for kernel space, especially because of one of the errors i get: /usr/include/linux/list.h:705:2: warning: #warning "don't include kernel headers in userspace" > Can you send your compile errors? Here you are... created only from the preprocessor stage, i.e. gcc -E -o test-i2c.e test-i2c.c 2>test-i2c.error bye, Michael -- Michael Reinelt <re...@eu...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |