我上个stm32CubeIDE版本是1.8.0,工程编译正常,升级到1.9.0后,编译出现了两个waring和两个error,报错如下:
../LWIP/Target/ethernetif.h:43:13: warning: 'ethernetif_input' declared 'static' but never defined [-Wunused-function]
43 | static void ethernetif_input(void const * argument);
| ^~~~~~~~~~~~~~~~
(这个waring,我对比了新老文件,发现新文件给 “void ethernetif_input”增加了 static)
---
---
c:\st\stm32cubeide_1.9.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: c:/st/stm32cubeide_1.9.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-reent.o).bss.errno+0x0): multiple definition of `errno'; ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o:C:/Users/lee/STM32CubeIDE/workspace_1.9.0/control_stm32f207zgt6/Debug/../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:45: first defined here
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:78: control_stm32f207zgt6.elf] Error 1
---
|