CH32V3x07移植官方TcpServer编译时添加了NetLIb库和头文件,在编译时报以下错误,想请教下是什么原因?
e:/softinstall/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: ./User/hzy_ethernet.o: in function `Ethernet_LED_Configuration':
F:\project\EXAM\SPI\2Lines_FullDuplex\obj/../User/hzy_ethernet.c:72: undefined reference to `Ethernet_LED_LINKSET'
e:/softinstall/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: F:\project\EXAM\SPI\2Lines_FullDuplex\obj/../User/hzy_ethernet.c:73: undefined reference to `Ethernet_LED_DATASET'
e:/softinstall/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: F:\project\EXAM\SPI\2Lines_FullDuplex\NetLib\libwchnet.a(socket.o): in function `PhyDataLed_fun':
socket.c:(.text.PhyDataLed_fun+0x16): undefined reference to `Ethernet_LED_DATASET'
e:/softinstall/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: socket.c:(.text.PhyDataLed_fun+0x34): undefined reference to `Ethernet_LED_DATASET'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:55: 2Lines_FullDuplex.elf] Error 1
NetLIb库设置如下:
NetLIb头文件设置如下: