bojank Posted February 22, 2020 Report Share Posted February 22, 2020 Hi there, i have some errors using I2Cdev.h and MPU6050_6Axis_MotionApps20.h at compiling/check in Arduino IDE Arduino IDE version: 1.89 I have no idea what causes those errors... Can someone help please? Thank you in advance...Errors: 1. \Arduino\libraries\MPU6050/MPU6050.h:436:7: warning: type 'struct MPU6050' violates one definition rule [-Wodr] class MPU6050 { 2. \Arduino\libraries\MPU6050\MPU6050.h:436:7: note: a different type is defined in another translation unit class MPU6050 { 3. \Arduino\libraries\MPU6050/MPU6050.h:1036:18: note: the first difference of corresponding definitions is field 'dmpPacketBuffer' uint8_t *dmpPacketBuffer; 4. \Arduino\libraries\MPU6050\MPU6050.h:436:7: note: a type with different number of fields is defined in another translation unit class MPU6050 { Quote Link to comment Share on other sites More sharing options...
ashchopra Posted January 12, 2021 Report Share Posted January 12, 2021 I had a similar problem. I resolved it my adding the i2cdev and mpu6050 library folders to the MY DOCUMENTS/ARDUINO/LIBRARIES FOLDER. For some reason they need to be there even if they exist in the library folder of ARDUINO residing in the Program Files Folder. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.