Jump to content
I2Cdevlib Forums

Compiling Error - MPU6050


Recommended Posts

I receive the following error when trying to compile code:

 

In file included from C:\Users\Alex\Documents\Arduino\libraries\MPU6050\Examples\MPU6050_DMP6\MPU6050_DMP6.ino:54:0:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Wire/Wire.h:94:16: error: conflicting declaration 'TwoWire Wire'
extern TwoWire Wire;
^
In file included from C:\Users\Alex\Documents\Arduino\libraries\I2Cdev/I2Cdev.h:83:0,
from C:\Users\Alex\Documents\Arduino\libraries\MPU6050\Examples\MPU6050_DMP6\MPU6050_DMP6.ino:46:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\i2c_t3/i2c_t3.h:803:15: error: 'Wire' has a previous declaration as 'i2c_t3 Wire'
extern i2c_t3 Wire;
^
exit status 1
Error compiling.
 
Any advice? Anyone seen this before? For some reason, the only code I CAN successfully compile is  MPU6050_raw.ino.
 
 
Thanks!
Link to comment
Share on other sites

  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...