谷动谷力

 找回密码
 立即注册
查看: 787|回复: 0
打印 上一主题 下一主题
收起左侧

[C语言编译错误]Error[1098] conflicting declarations

[复制链接]
跳转到指定楼层
楼主
发表于 2021-10-26 23:30:28 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 sunsili 于 2021-11-26 23:53 编辑

[C语言编译错误]Error[1098] conflicting declarations

问题描述:
编译时出现:………….h 或 .c ]Error[1098] conflicting declarations  for variable "...." in line ....
定义冲突(重复定义)

问题原因:


重复定义多次定义一个宏名

解决方法:

删除或修改宏定义,确保一个宏名只能有一个宏定义
+10
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|深圳市光明谷科技有限公司|光明谷商城|Sunshine Silicon Corpporation ( 粤ICP备14060730号|Sitemap

GMT+8, 2024-5-24 13:30 , Processed in 0.151927 second(s), 37 queries .

Powered by Discuz! X3.2 Licensed

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表