CH32F208 加入网络库后编译出现 Symbol netif_list multiply defined (by netif.o and netif.o). 错误

CH32F208 加入网络库后编译出现 同样的连接文件多重定义 错误!  检查引入文件,库文件也只应用一次,有谁遇到过这样的问题?


Build started: Project: CH32F208W_FreeRTOS

*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'

Build target 'CH32F208W_FREE_RTOS'

linking...

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_accept multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_arg multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_bind multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_close multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_connect multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_err multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_output multiply defined (by tcp_out.o and tcp_out.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_poll multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_recv multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_recved multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_sent multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_setprio multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_write multiply defined (by tcp_out.o and tcp_out.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol dns_gethostbyname multiply defined (by dns.o and dns.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol dns_getserver multiply defined (by dns.o and dns.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol dns_init multiply defined (by dns.o and dns.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol dns_setserver multiply defined (by dns.o and dns.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol dns_tmr multiply defined (by dns.o and dns.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol ip_addr_any multiply defined (by ip_addr.o and ip4_addr.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol netif_list multiply defined (by netif.o and netif.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol netif_default multiply defined (by netif.o and netif.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol netif_add multiply defined (by netif.o and netif.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol netif_find multiply defined (by netif.o and netif.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol netif_remove multiply defined (by netif.o and netif.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol netif_set_addr multiply defined (by netif.o and netif.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol netif_set_default multiply defined (by netif.o and netif.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol netif_set_down multiply defined (by netif.o and netif.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol netif_set_gw multiply defined (by netif.o and netif.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol netif_set_ipaddr multiply defined (by netif.o and netif.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol netif_set_netmask multiply defined (by netif.o and netif.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol netif_set_up multiply defined (by netif.o and netif.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_active_pcbs multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_ticks multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_bound_pcbs multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_listen_pcbs multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_tw_pcbs multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_abandon multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_alloc multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_debug_state_str multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_fasttmr multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_listen_with_backlog multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_new multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_next_iss multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_pcb_purge multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_pcb_remove multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_recv_null multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_seg_copy multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_seg_free multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_segs_free multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_slowtmr multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_tmr multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_update_rcv_ann_wnd multiply defined (by tcp.o and tcp.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_keepalive multiply defined (by tcp_out.o and tcp_out.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_rst multiply defined (by tcp_out.o and tcp_out.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_zero_window_probe multiply defined (by tcp_out.o and tcp_out.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_rexmit multiply defined (by tcp_out.o and tcp_out.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_rexmit_fast multiply defined (by tcp_out.o and tcp_out.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_rexmit_rto multiply defined (by tcp_out.o and tcp_out.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol tcp_send_empty_ack multiply defined (by tcp_out.o and tcp_out.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol ip_reass_tmr multiply defined (by ip_frag.o and ip4_frag.o).

.\obj\CH32F208W_FREE_RTOS.axf: Error: L6200E: Symbol ip_addr_broadcast multiply defined (by ip_addr.o and ip4_addr.o).

Not enough information to list image symbols.

Not enough information to list load addresses in the image map.

Finished: 2 information, 0 warning and 62 error messages.

".\obj\CH32F208W_FREE_RTOS.axf" - 62 Error(s), 0 Warning(s).

Target not created.

Build Time Elapsed:  00:00:02


您好,可以将工程发我邮箱看一下:kx@wch.cn


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