Skip to content

I2C overlaping definition #3

@honzasram

Description

@honzasram

Hi,

I have problem to compile code with your API.
I used one of example codes for Raspberry Pi on your sites and it gives me this:

pi@raspberrypi /project/gnublin-api $ g++ /project/LEDs.cpp
In file included from /project/gnublin-api/gnublin.h:45:0,
from /project/LEDs.cpp:3:
/usr/include/linux/i2c-dev.h:39:8: error: redefinition of ‘struct i2c_msg’
/usr/include/linux/i2c.h:67:8: error: previous definition of ‘struct i2c_msg’
/usr/include/linux/i2c-dev.h:91:7: error: redefinition of ‘union i2c_smbus_data’
/usr/include/linux/i2c.h:125:7: error: previous definition of ‘union i2c_smbus_data’

Please can you look at that?
Thanks
John

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions