初级会员

- 积分
- 182
- 金钱
- 182
- 注册时间
- 2015-4-5
- 在线时间
- 0 小时
|
5金钱
Rebuild target 'stm32-demo'
compiling misc.c...
compiling stm32f10x_adc.c...
compiling stm32f10x_bkp.c...
compiling stm32f10x_can.c...
compiling stm32f10x_cec.c...
compiling stm32f10x_crc.c...
compiling stm32f10x_dac.c...
compiling stm32f10x_dbgmcu.c...
compiling stm32f10x_dma.c...
compiling stm32f10x_exti.c...
compiling stm32f10x_flash.c...
compiling stm32f10x_fsmc.c...
compiling stm32f10x_gpio.c...
compiling stm32f10x_i2c.c...
compiling stm32f10x_iwdg.c...
compiling stm32f10x_pwr.c...
compiling stm32f10x_rcc.c...
compiling stm32f10x_rtc.c...
compiling stm32f10x_sdio.c...
compiling stm32f10x_spi.c...
compiling stm32f10x_tim.c...
compiling stm32f10x_usart.c...
compiling stm32f10x_wwdg.c...
compiling main.c...
main.c(15): warning: #223-D: function "uart_init" declared implicitly
uart_init(9600); //串口初始化为9600
main.c(18): warning: #223-D: function "delay_Init" declared implicitly
delay_Init();
main.c(19): warning: #223-D: function "sys_init" declared implicitly
sys_init();
main.c: 3 warnings, 0 errors
compiling stm32f10x_it.c...
compiling delay.c...
compiling sys.c...
compiling rs485.c...
compiling modbus.c...
compiling usart3.c...
compiling i2c.c...
compiling system_stm32f10x.c...
compiling core_cm3.c...
assembling startup_stm32f10x_hd.s...
linking...
..\OUTPUT\demo.axf: Error: L6200E: Symbol __stdout multiply defined (by modbus.o and main.o).
..\OUTPUT\demo.axf: Error: L6200E: Symbol __stdout multiply defined (by usart3.o and main.o).
..\OUTPUT\demo.axf: Error: L6200E: Symbol _sys_exit multiply defined (by modbus.o and main.o).
..\OUTPUT\demo.axf: Error: L6200E: Symbol _sys_exit multiply defined (by usart3.o and main.o).
..\OUTPUT\demo.axf: Error: L6200E: Symbol fputc multiply defined (by modbus.o and main.o).
..\OUTPUT\demo.axf: Error: L6200E: Symbol fputc multiply defined (by usart3.o and main.o).
..\OUTPUT\demo.axf: Error: L6200E: Symbol SystemInit multiply defined (by system_stm32f10x.o and sys.o).
Not enough information to list image symbols.
Not enough information to list the image map.
Finished: 2 information, 0 warning and 7 error messages.
"..\OUTPUT\demo.axf" - 7 Error(s), 3 Warning(s).
Target not created
|
最佳答案
查看完整内容[请看2#楼]
我是昨晚刚解决的,想法分享 的 后来想 都是玩32的 大部分不会遇到就没有发。。。。我也是在一个人的博客上找到的。。。。
全局变量相关
全局变量是指在整个项目工程中可见。
首先要理解 定义和声明
变量定义使用“数据类型+变量名称”的形式,编译器需要给他分配内存单元的;
变量声明使用“extern 变量类型+变量名称”的形式,是告诉编译器我这个变量将在其 ...
|