调试编译出现如下警告,望高手帮忙解决(不屏蔽警告)。 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
RE:STM32-USART库函数-编译警告