Open mwcarlis opened 4 years ago
That's odd, the headers in Debian do not have the duplicate define and both headers are clearly required. What distro and version are you using?
According to this similar issue you may also have to remove the libi2c-dev package as it replaces the i2c-dev header for some reason:
We run into the following issue when trying to compile in linux.
One workaround is to remove libi2c-dev, but it seems the issue is the way it includes i2c-dev.h and i2c.h.