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庫設(shè)置如下:
NetLIb頭文件設(shè)置如下: