错误提示很长一串,复制下来:
Arduino:1.5.5-r2 (Windows 7), 板:"Arduino Uno"
sketch_feb02b.cpp.o: In function `__static_initialization_and_destruction_0':
D:\Arduino/sketch_XXXXXXXXXo:37: undefined reference to `MPU6050::MPU6050()'
sketch_feb02b.cpp.o: In function `Get_Current_Rocket_Inclination(int)':
D:\Arduino/sketch_XXXXXXXXXo:127: undefined reference to `MPU6050::getIntStatus()'
D:\Arduino/sketch_XXXXXXXXXo:128: undefined reference to `MPU6050::getFIFOCount()'
D:\Arduino/sketch_XXXXXXXXXo:131: undefined reference to `MPU6050::getFIFOCount()'
D:\Arduino/sketch_XXXXXXXXXo:132: undefined reference to `MPU6050::getFIFOBytes(unsigned char*, unsigned char)'
D:\Arduino/sketch_XXXXXXXXXo:134: undefined reference to `MPU6050::resetFIFO()'
sketch_feb02b.cpp.o: In function `loop':
D:\Arduino/sketch_XXXXXXXXXo:67: undefined reference to `MPU6050::getAccelerationX()'
D:\Arduino/sketch_XXXXXXXXXo:97: undefined reference to `File::~File()'
D:\Arduino/sketch_XXXXXXXXXo:101: undefined reference to `File::~File()'
sketch_feb02b.cpp.o: In function `MPU6050::dmpInitialize()':
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:328: undefined reference to `MPU6050::reset()'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:339: undefined reference to `MPU6050::setSleepEnabled(bool)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:343: undefined reference to `MPU6050::setMemoryBank(unsigned char, bool, bool)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:345: undefined reference to `MPU6050::setMemoryStartAddress(unsigned char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:347: undefined reference to `MPU6050::readMemoryByte()'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:351: undefined reference to `MPU6050::setMemoryBank(unsigned char, bool, bool)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:355: undefined reference to `MPU6050::getOTPBankValid()'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:361: undefined reference to `MPU6050::getXGyroOffsetTC()'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:362: undefined reference to `MPU6050::getYGyroOffsetTC()'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:363: undefined reference to `MPU6050::getZGyroOffsetTC()'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:373: undefined reference to `MPU6050::setSlaveAddress(unsigned char, unsigned char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:375: undefined reference to `MPU6050::setI2CMasterModeEnabled(bool)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:377: undefined reference to `MPU6050::setSlaveAddress(unsigned char, unsigned char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:379: undefined reference to `MPU6050::resetI2CMaster()'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:386: undefined reference to `MPU6050::writeProgMemoryBlock(unsigned char const*, unsigned int, unsigned char, unsigned char, bool)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:393: undefined reference to `MPU6050::writeProgDMPConfigurationSet(unsigned char const*, unsigned int)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:397: undefined reference to `MPU6050::setClockSource(unsigned char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:400: undefined reference to `MPU6050::setIntEnabled(unsigned char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:403: undefined reference to `MPU6050::setRate(unsigned char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:406: undefined reference to `MPU6050::setExternalFrameSync(unsigned char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:409: undefined reference to `MPU6050::setDLPFMode(unsigned char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:412: undefined reference to `MPU6050::setFullScaleGyroRange(unsigned char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:415: undefined reference to `MPU6050::setDMPConfig1(unsigned char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:416: undefined reference to `MPU6050::setDMPConfig2(unsigned char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:419: undefined reference to `MPU6050::setOTPBankValid(bool)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:422: undefined reference to `MPU6050::setXGyroOffsetTC(signed char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:423: undefined reference to `MPU6050::setYGyroOffsetTC(signed char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:424: undefined reference to `MPU6050::setZGyroOffsetTC(signed char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:435: undefined reference to `MPU6050::writeMemoryBlock(unsigned char const*, unsigned int, unsigned char, unsigned char, bool, bool)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:439: undefined reference to `MPU6050::writeMemoryBlock(unsigned char const*, unsigned int, unsigned char, unsigned char, bool, bool)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:442: undefined reference to `MPU6050::resetFIFO()'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:445: undefined reference to `MPU6050::getFIFOCount()'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:450: undefined reference to `MPU6050::getFIFOBytes(unsigned char*, unsigned char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:453: undefined reference to `MPU6050::setMotionDetectionThreshold(unsigned char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:456: undefined reference to `MPU6050::setZeroMotionDetectionThreshold(unsigned char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:459: undefined reference to `MPU6050::setMotionDetectionDuration(unsigned char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:462: undefined reference to `MPU6050::setZeroMotionDetectionDuration(unsigned char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:465: undefined reference to `MPU6050::resetFIFO()'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:468: undefined reference to `MPU6050::setFIFOEnabled(bool)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:471: undefined reference to `MPU6050::setDMPEnabled(bool)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:474: undefined reference to `MPU6050::resetDMP()'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:478: undefined reference to `MPU6050::writeMemoryBlock(unsigned char const*, unsigned int, unsigned char, unsigned char, bool, bool)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:482: undefined reference to `MPU6050::writeMemoryBlock(unsigned char const*, unsigned int, unsigned char, unsigned char, bool, bool)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:486: undefined reference to `MPU6050::writeMemoryBlock(unsigned char const*, unsigned int, unsigned char, unsigned char, bool, bool)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:489: undefined reference to `MPU6050::getFIFOCount()'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:494: undefined reference to `MPU6050::getFIFOBytes(unsigned char*, unsigned char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:497: undefined reference to `MPU6050::getIntStatus()'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:504: undefined reference to `MPU6050::readMemoryBlock(unsigned char*, unsigned int, unsigned char, unsigned char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:507: undefined reference to `MPU6050::getFIFOCount()'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:513: undefined reference to `MPU6050::getFIFOBytes(unsigned char*, unsigned char)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:516: undefined reference to `MPU6050::getIntStatus()'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:523: undefined reference to `MPU6050::writeMemoryBlock(unsigned char const*, unsigned int, unsigned char, unsigned char, bool, bool)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:528: undefined reference to `MPU6050::setDMPEnabled(bool)'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:537: undefined reference to `MPU6050::resetFIFO()'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:538: undefined reference to `MPU6050::getIntStatus()'
sketch_feb02b.cpp.o: In function `Init_MPU_6050()':
D:\Arduino/sketch_XXXXXXXXXo:147: undefined reference to `MPU6050::initialize()'
D:\Arduino/sketch_XXXXXXXXXo:148: undefined reference to `MPU6050::setFullScaleGyroRange(unsigned char)'
D:\Arduino/sketch_XXXXXXXXXo:149: undefined reference to `MPU6050::setFullScaleAccelRange(unsigned char)'
D:\Arduino/sketch_XXXXXXXXXo:150: undefined reference to `MPU6050::setDLPFMode(unsigned char)'
D:\Arduino/sketch_XXXXXXXXXo:151: undefined reference to `MPU6050::setDHPFMode(unsigned char)'
D:\Arduino/sketch_XXXXXXXXXo:153: undefined reference to `MPU6050::setDMPEnabled(bool)'
src\SD.cpp.o: In function `SDClass::begin(unsigned char)':
D:\Arduino\libraries\SD\src/SD.cpp:345: undefined reference to `Sd2Card::init(unsigned char, unsigned char)'
src\utility\SdVolume.cpp.o: In function `SdVolume::cacheFlush()':
D:\Arduino\libraries\SD\src\utility/SdVolume.cpp:101: undefined reference to `Sd2Card::writeBlock(unsigned long, unsigned char const*)'
D:\Arduino\libraries\SD\src\utility/SdVolume.cpp:106: undefined reference to `Sd2Card::writeBlock(unsigned long, unsigned char const*)'
src\utility\SdVolume.cpp.o: In function `SdVolume::cacheRawBlock(unsigned long, unsigned char)':
D:\Arduino\libraries\SD\src\utility/SdVolume.cpp:119: undefined reference to `Sd2Card::readBlock(unsigned long, unsigned char*)'
src\utility\SdFile.cpp.o: In function `SdVolume::readData(unsigned long, unsigned int, unsigned int, unsigned char*)':
/SdFat.h:545: undefined reference to `Sd2Card::readData(unsigned long, unsigned int, unsigned int, unsigned char*)'
src\utility\SdFile.cpp.o: In function `SdVolume::writeBlock(unsigned long, unsigned char const*)':
/SdFat.h:548: undefined reference to `Sd2Card::writeBlock(unsigned long, unsigned char const*)'
报告将会包含更多的信息
"Show verbose output during compilation"
在 文件>首选项 中启用