STM32F103 采用GCC+ Eclipse 编译工具,编译ST官方的IOToggle 程序报以下错误,求解!
./Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x/system_stm32f10x.o: In func
tion `SystemInit':
E:workspaceGCCTESTDebug/../Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x/system_stm32f10x.c:213: multiple definition of `SystemInit'
./User/system_stm32f10x.o:E:workspaceGCCTESTDebug/../User/system_stm32f10x.c:213: first defined here
./Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x/system_stm32f10x.o: In function `SystemCoreClockUpdate':
E:workspaceGCCTESTDebug/../Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x/system_stm32f10x.c:307: multiple definition of `SystemCoreClockUpdate'
./User/system_stm32f10x.o:E:workspaceGCCTESTDebug/../User/system_stm32f10x.c:307: first defined here
c:/users/kevin li/mentorgraphics/sourcery_codebench_lite_for_
ARM_eabi/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/lib/thumb2libc.a(lib_a-init.o): In function `__libc_init_array':
init.c.text+0x3c): undefined reference to `_init'
collect2.exe: error: ld returned 1 exit status
cs-make: *** [GCCTEST.elf] Error 1
09:38:43 Build Finished (took 10s.198ms)
一周热门 更多>