大神,我这里6050老是编译错误,是为什么?
我替换了几次库文件了。。还是这样
MPU6050\MPU6050.cpp.o: In function `MPU6050':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:42: multiple definition of `MPU6050::MPU6050()'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:42: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:42: multiple definition of `MPU6050::MPU6050()'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:42: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:52: multiple definition of `MPU6050::MPU6050(unsigned char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:52: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:52: multiple definition of `MPU6050::MPU6050(unsigned char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:52: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setDMPConfig2(unsigned char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:3140: multiple definition of `MPU6050::setDMPConfig2(unsigned char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:3140: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setDMPConfig1(unsigned char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:3130: multiple definition of `MPU6050::setDMPConfig1(unsigned char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:3130: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::writeMemoryByte(unsigned char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:2932: multiple definition of `MPU6050::writeMemoryByte(unsigned char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:2932: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setMemoryStartAddress(unsigned char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:2922: multiple definition of `MPU6050::setMemoryStartAddress(unsigned char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:2922: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setMemoryBank(unsigned char, bool, bool)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:2913: multiple definition of `MPU6050::setMemoryBank(unsigned char, bool, bool)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:2913: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setZFineGain(signed char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:2779: multiple definition of `MPU6050::setZFineGain(signed char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:2779: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setYFineGain(signed char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:2769: multiple definition of `MPU6050::setYFineGain(signed char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:2769: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setXFineGain(signed char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:2759: multiple definition of `MPU6050::setXFineGain(signed char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:2759: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setFIFOByte(unsigned char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:2684: multiple definition of `MPU6050::setFIFOByte(unsigned char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:2684: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setSlaveOutputByte(unsigned char, unsigned char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:2067: multiple definition of `MPU6050::setSlaveOutputByte(unsigned char, unsigned char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:2067: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setIntEnabled(unsigned char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:1499: multiple definition of `MPU6050::setIntEnabled(unsigned char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:1499: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setSlave4OutputByte(unsigned char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:1112: multiple definition of `MPU6050::setSlave4OutputByte(unsigned char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:1112: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setSlave4Register(unsigned char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:1103: multiple definition of `MPU6050::setSlave4Register(unsigned char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:1103: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setSlave4Address(unsigned char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:1084: multiple definition of `MPU6050::setSlave4Address(unsigned char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:1084: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setSlaveRegister(unsigned char, unsigned char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:938: multiple definition of `MPU6050::setSlaveRegister(unsigned char, unsigned char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:938: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setSlaveAddress(unsigned char, unsigned char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:912: multiple definition of `MPU6050::setSlaveAddress(unsigned char, unsigned char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:912: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setZeroMotionDetectionDuration(unsigned char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:573: multiple definition of `MPU6050::setZeroMotionDetectionDuration(unsigned char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:573: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setZeroMotionDetectionThreshold(unsigned char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:542: multiple definition of `MPU6050::setZeroMotionDetectionThreshold(unsigned char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:542: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setMotionDetectionDuration(unsigned char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:502: multiple definition of `MPU6050::setMotionDetectionDuration(unsigned char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:502: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setMotionDetectionThreshold(unsigned char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:472: multiple definition of `MPU6050::setMotionDetectionThreshold(unsigned char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:472: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setFreefallDetectionDuration(unsigned char)':
G:\arduino\arduino-1.0.1\libraries\MPU6050/MPU6050.cpp:438: multiple definition of `MPU6050::setFreefallDetectionDuration(unsigned char)'
MPU6050.cpp.o:C:\Users\shadow\AppData\Local\Temp\build3457055428808906085.tmp/MPU6050.cpp:438: first defined here
MPU6050\MPU6050.cpp.o: In function `MPU6050::setFreefallDetectionThreshold(unsigned char)': |