Jump to content
I2Cdevlib Forums

Search the Community

Showing results for tags 'multiple definitions'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • I2Cdevlib Web Tools
    • I2C Protocol Analyzer
    • I2C Device Entry Interface
    • I2C Device Library API
  • I2Cdev Platform Discussion
    • Arduino (ATmega)
    • Arduino Due (ARM Cortex M3)
    • MSP430
    • Other Platforms
  • I2C Device Discussion
    • AD7746 capacitance-to-digital converter (Analog Devices)
    • ADS1115 16-bit A/D converter (Texas Instruments)
    • ADXL345 3-axis accelerometer (Analog Devices)
    • AK8975 3-axis magnetometer (AKM Semiconductor)
    • BMA150 3-axis accelerometer (Bosch Sensortec)
    • BMP085 pressure sensor (Bosch Sensortec)
    • DS1307 real-time clock (Maxim)
    • HMC5843 3-axis magnetometer (Honeywell)
    • HMC5883L 3-axis magnetometer (Honeywell)
    • iAQ-2000 indoor air quality sensor (AppliedSensor)
    • IQS156 ProxSense capacitive touch sensor (Azoteq)
    • ITG-3200 3-axis gyroscope (InvenSense)
    • L3G4200D 3-axis accelerometer (STMicroelectronics)
    • MPL3115A2 Xtrinsic Smart Pressure Sensor (Freescale)
    • MPR121 12-bit capacitive touch sensor (Freescale)
    • MPU-6050 6-axis accelerometer/gyroscope (InvenSense)
    • MPU-9150 9-axis accelerometer/gyroscope/magnetometer (InvenSense)
    • PanelPilot multi-screen digital meter (Lascar Electronics)
    • SSD1308 128x64 OLED/PLED driver (Solomon Systech)
    • TCA6424A 24-bit I/O expander (Texas Instruments)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. Hello, I started to use MPU6050 library about a week ago and it was a delicious thing, thanks for that. Since I want to use it in a quadcopter, sensor readings is not all the work, so I created a library and do the sensor stuff under that library for simplicity of the main program. That's when I encountered with multiple definitions problem. In my library, I included 6 axis motion apps library and try to do initializing and reading. The error output is below. I use Visual Micro for Arduino programming but Arduino IDE gives the same error. I couldn't find multiple definitions, so any help would be great. Thanks in advance. Compiling 'QuadroCopter_v0_92' for 'Arduino Mega 2560 or Mega ADK' MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetAccel(long*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetAccel(long*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:577: first defined here ld.exe:Disabling relaxation: it will not work with multiple definitions MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetAccel(int*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetAccel(int*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:585: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetAccel(VectorInt16*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetAccel(VectorInt16*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:593: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetQuaternion(long*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetQuaternion(long*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:601: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetQuaternion(int*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetQuaternion(int*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:610: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetQuaternion(Quaternion*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetQuaternion(Quaternion*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:619: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetGyro(long*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetGyro(long*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:634: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetGyro(int*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetGyro(int*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:642: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetLinearAccel(VectorInt16*, VectorInt16*, VectorFloat*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetLinearAccel(VectorInt16*, VectorInt16*, VectorFloat*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:652: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetGravity(VectorFloat*, Quaternion*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetGravity(VectorFloat*, Quaternion*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:672: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpProcessFIFOPacket(unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpProcessFIFOPacket(unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:711: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetFIFOPacketSize()' MPU6050_6Axis_MotionApps20.cpp:dmpGetFIFOPacketSize()' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:737: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpReadAndProcessFIFOPacket(unsigned char, unsigned char*)' MPU6050_6Axis_MotionApps20.cpp:dmpReadAndProcessFIFOPacket(unsigned char, unsigned char*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:712: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetYawPitchRoll(float*, Quaternion*, VectorFloat*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetYawPitchRoll(float*, Quaternion*, VectorFloat*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:689: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetEuler(float*, Quaternion*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetEuler(float*, Quaternion*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:683: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetLinearAccelInWorld(VectorInt16*, VectorInt16*, Quaternion*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetLinearAccelInWorld(VectorInt16*, VectorInt16*, Quaternion*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:660: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpPacketAvailable()' MPU6050_6Axis_MotionApps20.cpp:dmpPacketAvailable()' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:550: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpInitialize()' MPU6050_6Axis_MotionApps20.cpp:dmpInitialize()' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:325: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetAccel(long*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetAccel(long*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:577: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetAccel(int*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetAccel(int*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:585: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetAccel(VectorInt16*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetAccel(VectorInt16*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:593: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetQuaternion(long*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetQuaternion(long*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:601: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetQuaternion(int*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetQuaternion(int*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:610: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetQuaternion(Quaternion*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetQuaternion(Quaternion*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:619: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetGyro(long*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetGyro(long*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:634: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetGyro(int*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetGyro(int*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:642: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetLinearAccel(VectorInt16*, VectorInt16*, VectorFloat*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetLinearAccel(VectorInt16*, VectorInt16*, VectorFloat*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:652: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetGravity(VectorFloat*, Quaternion*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetGravity(VectorFloat*, Quaternion*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:672: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpProcessFIFOPacket(unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpProcessFIFOPacket(unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:711: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetFIFOPacketSize()' MPU6050_6Axis_MotionApps20.cpp:dmpGetFIFOPacketSize()' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:737: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpReadAndProcessFIFOPacket(unsigned char, unsigned char*)' MPU6050_6Axis_MotionApps20.cpp:dmpReadAndProcessFIFOPacket(unsigned char, unsigned char*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:712: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetYawPitchRoll(float*, Quaternion*, VectorFloat*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetYawPitchRoll(float*, Quaternion*, VectorFloat*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:689: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetEuler(float*, Quaternion*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetEuler(float*, Quaternion*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:683: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetLinearAccelInWorld(VectorInt16*, VectorInt16*, Quaternion*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetLinearAccelInWorld(VectorInt16*, VectorInt16*, Quaternion*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:660: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpPacketAvailable()' MPU6050_6Axis_MotionApps20.cpp:dmpPacketAvailable()' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:550: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpInitialize()' MPU6050_6Axis_MotionApps20.cpp:dmpInitialize()' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:325: first defined here Error creating .elf
×
×
  • Create New...