你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

大家有没有遇到这种编译错误?大家都怎么解决?

[复制链接]
胡杨-345459 提问时间:2012-3-8 11:00 /
 linking...
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol Gateway_IP multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol IP_Addr multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol Phy_Addr multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol Rx_Buffer multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol Sub_Mask multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol Tx_Buffer multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol Temp_Buffer multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol UART_Rx_Buffer multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol UART_Tx_Buffer multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol RxCounter multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol S0_Data multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol S0_State multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol S1_Data multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol S1_State multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol S2_Data multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol S2_State multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol S3_Data multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol S3_State multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol Sn_DPort multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol Sn_Mode multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol Sn_Port multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol TxCounter multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol TxIndex multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol UART_DataReceive multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol W5100_Interrupt multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol Sn_DIP multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol close multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol connect multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol disconnect multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol getSockStatus multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol listen multiply defined (by device.o and demo.o).
.\Obj\STM3210E-EVAL.axf: Error: L6200E: Symbol open multiply defined (by device.o and demo.o).
Target not created
收藏 评论12 发布时间:2012-3-8 11:00

举报

12个回答
胡杨-345459 回答时间:2012-3-8 11:02:04

RE:大家有没有遇到这种编译错误?大家都怎么解决?

我都快折腾两天了,这不争气的程序还是很不给面子
magiclakesz 回答时间:2012-3-8 11:05:47

RE:大家有没有遇到这种编译错误?大家都怎么解决?

应该是两个文件对同一个 Symbol 进行了重复定义吧
胡杨-345459 回答时间:2012-3-8 13:24:10

RE:大家有没有遇到这种编译错误?大家都怎么解决?

这个我也不太清楚,网上有说是因为那些变量定义时没有加extern,后来我挨边找了找,把没加的都加上现在就有一条这种提示了:.\Obj\STM3210E-EVAL.axf: Error: L6218E: Undefined symbol Sn_DIP (referred from demo.o).   可是Sn_DIP在定义时已经加extern了啊。这一个错误怎么都搞不定了……而且错误还不能自动定位的那一行。
哪位高人能指点一二啊
xinjitmzy-34588 回答时间:2012-3-8 14:48:32

回复:大家有没有遇到这种编译错误?大家都怎么解决?

我遇到过了  那些文件全是.o的文件
搞了好久也没搞出来
不过后来找了一个比较好的模板,把主程序移植一下。进而再次编译的时候就通过了,如果需要模板的话加qq939842278,我也刚学习这个!
xiaodc88 回答时间:2012-3-8 16:24:32

回复:大家有没有遇到这种编译错误?大家都怎么解决?

很简单,你在不同的文件多次定义了同样的变量,解决办法是加extern没错,但你得注意,总得留一个定义不要加extern,不然就会报这个变量没有定义啊,提示说的很清楚了。你全部都加了extern当然又会报错
xiaodc88 回答时间:2012-3-8 16:24:32

回复:大家有没有遇到这种编译错误?大家都怎么解决?

很简单,你在不同的文件多次定义了同样的变量,解决办法是加extern没错,但你得注意,总得留一个定义不要加extern,不然就会报这个变量没有定义啊,提示说的很清楚了。你全部都加了extern当然又会报错
废鱼 回答时间:2012-3-8 16:33:26

RE:大家有没有遇到这种编译错误?大家都怎么解决?

重复定义,工程中找一下这几个定义。
swallow1029 回答时间:2012-3-8 17:41:40

RE:大家有没有遇到这种编译错误?大家都怎么解决?

是的,我也遇到过这样的错误。就定义重复了或者 没有加extern ,
  注意 定义类型的 头文件 要放在最前面,不然的话 也会错误的。
火雷达 回答时间:2012-3-8 21:57:52

回复:大家有没有遇到这种编译错误?大家都怎么解决?

太长了吧,应该是没有找到库
废鱼 回答时间:2012-3-9 09:00:48

RE:大家有没有遇到这种编译错误?大家都怎么解决?

可能是没有加.C
胡杨-345459 回答时间:2012-3-12 10:23:39

RE:大家有没有遇到这种编译错误?大家都怎么解决?

确实是重复定义。
zhengknight 回答时间:2015-10-24 22:26:21
重复定义,删除重复包含的文件就好了

所属标签

相似问题

关于意法半导体
我们是谁
投资者关系
意法半导体可持续发展举措
创新和工艺
招聘信息
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
关注我们
st-img 微信公众号
st-img 手机版