ch32v307芯片,添加tcp server報(bào)的錯(cuò),已經(jīng)添加wchnet庫(kù)和路徑

18:21:08 **** Incremental Build of configuration obj for project light3_net ****

make -j6 all?

e:/software/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: ./User/tcpServer.o: in function `WCHNET_DataLoopback':

D:\work\2023\24_light3_net\obj/../User/tcpServer.c:56: undefined reference to `SocketInf'

e:/software/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\work\2023\24_light3_net\obj/../User/tcpServer.c:56: undefined reference to `SocketInf'

e:/software/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: ./User/tcpServer.o: in function `loop_tcp_server_system':

D:\work\2023\24_light3_net\obj/../User/tcpServer.c:164: undefined reference to `WCHNET_MainTask'

e:/software/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\work\2023\24_light3_net\NetLib\libwchnet.a(socket.o): in function `tcp_recved_socket':

socket.c:(.text.tcp_recved_socket+0xe): undefined reference to `LocalTime'

e:/software/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.tcp_recved_socket+0x16): undefined reference to `LocalTime'

e:/software/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\work\2023\24_light3_net\NetLib\libwchnet.a(socket.o): in function `WCHNET_ModifyRecvBuf':

socket.c:(.text.WCHNET_ModifyRecvBuf+0x10): undefined reference to `SocketInf'

e:/software/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.WCHNET_ModifyRecvBuf+0x14): undefined reference to `SocketInf'

e:/software/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\work\2023\24_light3_net\NetLib\libwchnet.a(socket.o): in function `WCHNET_SocketRecv':

socket.c:(.text.WCHNET_SocketRecv+0xc): undefined reference to `SocketInf'

e:/software/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.WCHNET_SocketRecv+0x10): undefined reference to `SocketInf'

e:/software/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.WCHNET_SocketRecv+0x3c): undefined reference to `SocketInf'

e:/software/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\work\2023\24_light3_net\NetLib\libwchnet.a(socket.o):socket.c:(.text.SocketIPRawSend+0x1a): more undefined references to `SocketInf' follow

e:/software/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\work\2023\24_light3_net\NetLib\libwchnet.a(tcp_out.o): in function `tcp_send_empty_ack':

tcp_out.c:(.text.tcp_send_empty_ack+0x60): undefined reference to `LocalTime'

e:/software/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: tcp_out.c:(.text.tcp_send_empty_ack+0x64): undefined reference to `LocalTime'

e:/software/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\work\2023\24_light3_net\NetLib\libwchnet.a(tcp_out.o): in function `.L88':

tcp_out.c:(.text.tcp_output+0x7a): undefined reference to `LocalTime'

e:/software/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\work\2023\24_light3_net\NetLib\libwchnet.a(tcp_out.o): in function `.L102':

tcp_out.c:(.text.tcp_output+0x24a): undefined reference to `LocalTime'

e:/software/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\work\2023\24_light3_net\NetLib\libwchnet.a(eth_api.o): in function `setRxBuffAddr':

eth_api.c:(.text.setRxBuffAddr+0x0): undefined reference to `pDMARxSet'

e:/software/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: eth_api.c:(.text.setRxBuffAddr+0x4): undefined reference to `pDMARxSet'

e:/software/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: eth_api.c:(.text.setRxBuffAddr+0x10): undefined reference to `pDMARxSet'

collect2.exe: error: ld returned 1 exit status

make: *** [makefile:56: light3_net.elf] Error 1


wch.png

還有這個(gè)看起來也不正常,netlib 文件夾和下面的文件 圖標(biāo)都帶有斜杠,例子tcp server只有l(wèi)ibwchnet_flag.a帶斜杠。


您好,需右鍵netlib文件夾通過Include from build將其添加編譯

image.png


謝謝,問題已解決


只有登錄才能回復(fù),可以選擇微信賬號(hào)登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频