万金油 发表于 2014-6-5 10:03:14

STM32F103 采用GCC+ Eclipse 编译工具,编译ST官方的IOToggle 程序报以下错误,求解!

  STM32F103   采用GCC+ Eclipse 编译工具,编译ST官方的IOToggle 程序报以下错误,求解!
 
./Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x/system_stm32f10x.o: In function `SystemInit':
E:\workspace\GCCTEST\Debug/../Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x/system_stm32f10x.c:213: multiple definition of `SystemInit'
./User/system_stm32f10x.o:E:\workspace\GCCTEST\Debug/../User/system_stm32f10x.c:213: first defined here
./Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x/system_stm32f10x.o: In function `SystemCoreClockUpdate':
E:\workspace\GCCTEST\Debug/../Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x/system_stm32f10x.c:307: multiple definition of `SystemCoreClockUpdate'
./User/system_stm32f10x.o:E:\workspace\GCCTEST\Debug/../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/thumb2\libc.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: *** Error 1
 
09:38:43 Build Finished (took 10s.198ms)
 

 

有缘于你 发表于 2014-6-9 20:46:07

RE:STM32F103 采用GCC+ Eclipse 编译工具,编译ST官方的IOToggle 程序报以下错误,求解!

看调试输出信息是重复定义了,找找看哪定义了

深秋独影 发表于 2014-6-10 10:06:36

RE:STM32F103 采用GCC+ Eclipse 编译工具,编译ST官方的IOToggle 程序报以下错误,求解!

我用MDK5.1可以编译, 你看看你的设置是否出错了, 看看哪重复定义了

feiante-155820 发表于 2014-6-10 10:16:39

RE:STM32F103 采用GCC+ Eclipse 编译工具,编译ST官方的IOToggle 程序报以下错误,求解!

没有用过GCC+ Eclipse 编译工具,看看是不是你的路径没有定义好

dzc2001 发表于 2014-6-11 09:34:28

RE:STM32F103 采用GCC+ Eclipse 编译工具,编译ST官方的IOToggle 程序报以下错误,求解!

你重复添加同一个文件了吧

aaa999kk 发表于 2014-6-16 18:22:05

RE:STM32F103 采用GCC+ Eclipse 编译工具,编译ST官方的IOToggle 程序报以下错误,求解!

我看也是路径不对

feixiang20 发表于 2014-6-17 13:24:15

RE:STM32F103 采用GCC+ Eclipse 编译工具,编译ST官方的IOToggle 程序报以下错误,求解!

是编译问题,重新编译下
页: [1]
查看完整版本: STM32F103 采用GCC+ Eclipse 编译工具,编译ST官方的IOToggle 程序报以下错误,求解!