ARMinARM / stm32flash

Open source flash program for the STM32 ARM processors using the ST serial bootloader over UART or I2C
223 stars 81 forks source link

Remove redefining include due to compilation error #2

Closed mtczekajlo closed 7 years ago

mtczekajlo commented 7 years ago

cc -Wall -g -c -o i2c.o i2c.c In file included from i2c.c:57:0: /usr/include/linux/i2c-dev.h:37:8: error: redefinition of ‘struct i2c_msg’ struct i2c_msg { ^ In file included from i2c.c:56:0: /usr/include/linux/i2c.h:68:8: note: originally defined here struct i2c_msg { ^ In file included from i2c.c:57:0: /usr/include/linux/i2c-dev.h:89:7: error: redefinition of ‘union i2c_smbus_data’ union i2c_smbus_data { ^ In file included from i2c.c:56:0: /usr/include/linux/i2c.h:129:7: note: originally defined here union i2c_smbus_data { ^

: recipe for target 'i2c.o' failed make: *** [i2c.o] Error 1
ARMinARM commented 7 years ago

Thank you both!

ARMinARM commented 7 years ago

Please note that you might want to use the upstream version here: https://sourceforge.net/p/stm32flash/code/ci/master/tree/ (see README in this repo) Thanks again!