From: Basham, Richard R <richard.r.basham@bo...> - 2004-12-03 03:34:21
I am probably missing some basic element here.
I am trying to compile a small program=20
that has a few i2c calls.
My code is primarily the example provided=20
I keep getting errors about header files=20
re-defining system variables like 'struct timespec'.
If anyone has compiled some i2c C code, would you=20
please provide a list of header files that you=20
needed and the order that they had to be
in order to compile properly.
From: Dave Hylands <dhylands@gm...> - 2004-12-03 05:37:46
On Thu, 2 Dec 2004 19:33:58 -0800, Basham, Richard R
> I am probably missing some basic element here.
> I keep getting errors about header files
> re-defining system variables like 'struct timespec'.
I haven't yet tried to build i2c stuff, but the problem is almost
certainly caused by mixing kernel headers and C runtime library
headers. In general, these are incompatible with eah other. So don't
feel bad, this can be tricky, if not impossible to get things to
compile without warnings.
> I am trying to compile a small program
> that has a few i2c calls.
> My code is primarily the example provided
> in documents/dev-interface.
Can you supply a small sample file (for this particular problem, I
think all we need are the exact list and order of #include files that
Vancouver, BC, Canada
Get latest updates about Open Source Projects, Conferences and News.