danjperron/A2D_PIC_RPI

I had got error as "redefinition of 'struct i2c_msg'

Closed this issue · 2 comments

this is i2c-dev error, but how will I fix it?

P.S. redefinition of 'union i2c_smbus_data' too

vbloodv could you be more explicit.

Where exactly did you have that error. because of i2c_smbus_data I suppose it is from the Raspberry pi and it's not when you tried to compile the Microchip code.

I need way more information to figure it out.

Which part you tried to compile?
What is your compile line ?
Where the error point to, which file ?

@danjperron Thanks you for your answer.

It's problem not are your code. It's bugs into gnublin.h
I commented out #include "linux/i2c.h", because this kernel header of linux and I changed struct i2c_smbus_data...

link to similar trouble

P.S. You can remove #include "linux/i2c.h" from your code, but this action to be need to check