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

查看: 4340|回复: 1

STM32-USART库函数-编译警告

[复制链接]

1

主题

2

回帖

0

蝴蝶豆

新手上路

最后登录
2020-10-14
发表于 2013-1-22 10:47:11 | 显示全部楼层 |阅读模式
调试编译出现如下警告,望高手帮忙解决(不屏蔽警告)。
Rebuild target 'Simulator'
compiling stm32f10x_it.c...
myuse.h(128): warning:  #47-D: incompatible redefinition of macro "htons" (declared at line 69 of "C:\Keil\ARM\RV31\INC\RTL.h")
myuse.h(130): warning:  #47-D: incompatible redefinition of macro "htonl" (declared at line 70 of "C:\Keil\ARM\RV31\INC\RTL.h")
myuse.h(134): warning:  #47-D: incompatible redefinition of macro "ntohs" (declared at line 67 of "C:\Keil\ARM\RV31\INC\RTL.h")
myuse.h(135): warning:  #47-D: incompatible redefinition of macro "ntohl" (declared at line 68 of "C:\Keil\ARM\RV31\INC\RTL.h")
compiling main.c...
myuse.h(128): warning:  #47-D: incompatible redefinition of macro "htons" (declared at line 69 of "C:\Keil\ARM\RV31\INC\RTL.h")
myuse.h(130): warning:  #47-D: incompatible redefinition of macro "htonl" (declared at line 70 of "C:\Keil\ARM\RV31\INC\RTL.h")
myuse.h(134): warning:  #47-D: incompatible redefinition of macro "ntohs" (declared at line 67 of "C:\Keil\ARM\RV31\INC\RTL.h")
myuse.h(135): warning:  #47-D: incompatible redefinition of macro "ntohl" (declared at line 68 of "C:\Keil\ARM\RV31\INC\RTL.h")
compiling Retarget.c...
assembling stm32f10x_vector.s...
linking...
Program Size: Code=1868 RO-data=356 RW-data=24 ZI-data=1024 
"..\out\ObjSim\STM32.axf" - 0 Error(s), 8 Warning(s).

USART-Lib.zip

下载

672.9 KB, 下载次数: 1, 下载积分: ST金币 -1

回复

使用道具 举报

134

主题

4489

回帖

239

蝴蝶豆

版主

最后登录
2020-12-9
发表于 2013-1-23 09:39:03 | 显示全部楼层

RE:STM32-USART库函数-编译警告

在RTL.H和MYUSE.h中这几个重复定义了。你看一下。
回复 支持 反对

使用道具 举报

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