AnsweredAssumed Answered

Library compile error

Question asked by erenburg.evgeny.002 on Feb 21, 2018
Latest reply on Feb 21, 2018 by Andrew Neil

I've included STM32_USB-FS-Device_Driver in my project. When I compile (in IAR) I get a bunch of errors

Error[Li006]: duplicate definitions for "Receive_Buffer"; in "F:\MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_core.o", and "F:\
MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_init.o"
Error[Li006]: duplicate definitions for "Send_length"; in "F:\MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_core.o", and "F:\
MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_init.o"
Error[Li006]: duplicate definitions for "Receive_Buffer"; in "F:\MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_core.o", and "F:\
MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_int.o"
Error[Li006]: duplicate definitions for "Send_length"; in "F:\MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_core.o", and "F:\
MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_int.o"
Error[Li006]: duplicate definitions for "Receive_Buffer"; in "F:\MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_core.o", and "F:\
MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_mem.o"
Error[Li006]: duplicate definitions for "Send_length"; in "F:\MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_core.o", and "F:\
MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_mem.o"
Error[Li006]: duplicate definitions for "Receive_Buffer"; in "F:\MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_core.o", and "F:\
MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_regs.o"
Error[Li006]: duplicate definitions for "Send_length"; in "F:\MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_core.o", and "F:\
MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_regs.o"
Error[Li006]: duplicate definitions for "Receive_Buffer"; in "F:\MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_core.o", and "F:\
MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_sil.o"
Error[Li006]: duplicate definitions for "Send_length"; in "F:\MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_core.o", and "F:\
MotorControlSolution\MultiAxisMotorControl\AxisManager\Firmware\STM32F303VC\Debug\Obj\usb_sil.o"
Error while running Linker

What is wrong?

Outcomes