errors. It seems maybe some header is missing or wrong, not sure. g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT LT_PMBus.o -MD -MP -MF .deps/LT_PMBus.Tpo -c -o LT_PMBus.o ...
Usually, I2C devices are controlled by a kernel driver. But it is also possible to access all devices on an adapter from userspace, through the /dev interface. You need to load module i2c-dev for this ...