求ch32v307使用freertos系统移植TcpClient的例程

求ch32v307使用freertos系统移植TcpClient的例程,将网络单独作为任务编译时出现以下错误

16:21:33 **** 构建 of configuration obj for project FreeRTOS-V307 ****

make -j20 all?

c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: ./User/Tcp.o: in function `WCHNET_CreateTcpSocket':

D:\开发\3-CH32V307\FreeRTOS-V307\obj/../User/Tcp.c:78: undefined reference to `WCHNET_SocketCreat'

c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\开发\3-CH32V307\FreeRTOS-V307\obj/../User/Tcp.c:81: undefined reference to `WCHNET_SocketConnect'

c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\开发\3-CH32V307\FreeRTOS-V307\obj/../User/Tcp.c:84: undefined reference to `WCHNET_GetVer'

c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: ./NetLib/eth_driver.o: in function `ETH_LibInit':

D:\开发\3-CH32V307\FreeRTOS-V307\obj/../NetLib/eth_driver.c:631: undefined reference to `WCHNET_ConfigLIB'

c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\开发\3-CH32V307\FreeRTOS-V307\obj/../NetLib/eth_driver.c:635: undefined reference to `WCHNET_Init'

collect2.exe: error: ld returned 1 exit status

make: *** [makefile:60: FreeRTOS-V307.elf] Error 1


您好,可以对照检查一下工程中有没有添加网络库的路径,如下图

image.png


谢谢,已解决,是没有添加网络库。


只有登录才能回复,可以选择微信账号登录