keil RTX TCP/UDP 报错
2014-06-05 09:34
351 查看
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol get_host_by_name (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_abort (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_check_send (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_close (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_connect (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_get_buf (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_get_socket (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_get_state (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_max_dsize (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_release_socket (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_send (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tick_rate (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol udp_close (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol udp_get_buf (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol udp_get_socket (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol udp_open (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol udp_release_socket (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol udp_send (referred from neti_tcpip.o).
RTX报以上错误是因为没有导入库文件,库文件不用到官网去下载,keil安装时已经自带
如图:
库文件路径:C:\Keil\ARM\RV31\LIB\RTX_CM3.lib C:\Keil\ARM\RV31\LIB\TCP_CM3.lib
再次进行编译:如果还有文件没导入则会出现以下错误
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tick_rate (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol sys_error (referred from at_tcp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_2MSSTout (referred from at_tcp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_ConRetry (referred from at_tcp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_InitRetryTout (referred from at_tcp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_MaxRetry (referred from at_tcp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_NumSocks (referred from at_tcp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_RetryTout (referred from at_tcp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_SynRetryTout (referred from at_tcp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_socket (referred from at_tcp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol udp_NumSocks (referred from at_udp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol udp_socket (referred from at_udp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol dns_TabSize (referred from at_dns.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol dns_table (referred from at_dns.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol netif_cfg (referred from at_dns.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol dispatch_frame (referred from at_ip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol MPool_Size (referred from at_mem.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol Mem_Pool (referred from at_mem.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol init_system (referred from at_system.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol nlocalm (referred from at_system.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol run_system (referred from at_system.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol igmp_T200ms (referred from at_igmp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol igmp_TabSize (referred from at_igmp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol igmp_table (referred from at_igmp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol init_ethernet (referred from at_ethernet.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol own_hw_adr (referred from at_ethernet.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol send_frame (referred from at_ethernet.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol arp_MaxRetry (referred from at_arp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol arp_Resend (referred from at_arp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol arp_TabSize (referred from at_arp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol arp_TimeOut (referred from at_arp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol arp_table (referred from at_arp.o).
需要倒入Net_Config.c
再次编译成功通过
参考文章:http://www.keil.com/support/man/docs/rlarm/rlarm_ar_libfiles.htm
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_abort (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_check_send (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_close (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_connect (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_get_buf (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_get_socket (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_get_state (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_max_dsize (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_release_socket (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_send (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tick_rate (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol udp_close (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol udp_get_buf (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol udp_get_socket (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol udp_open (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol udp_release_socket (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol udp_send (referred from neti_tcpip.o).
RTX报以上错误是因为没有导入库文件,库文件不用到官网去下载,keil安装时已经自带
如图:
库文件路径:C:\Keil\ARM\RV31\LIB\RTX_CM3.lib C:\Keil\ARM\RV31\LIB\TCP_CM3.lib
再次进行编译:如果还有文件没导入则会出现以下错误
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tick_rate (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol sys_error (referred from at_tcp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_2MSSTout (referred from at_tcp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_ConRetry (referred from at_tcp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_InitRetryTout (referred from at_tcp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_MaxRetry (referred from at_tcp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_NumSocks (referred from at_tcp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_RetryTout (referred from at_tcp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_SynRetryTout (referred from at_tcp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_socket (referred from at_tcp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol udp_NumSocks (referred from at_udp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol udp_socket (referred from at_udp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol dns_TabSize (referred from at_dns.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol dns_table (referred from at_dns.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol netif_cfg (referred from at_dns.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol dispatch_frame (referred from at_ip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol MPool_Size (referred from at_mem.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol Mem_Pool (referred from at_mem.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol init_system (referred from at_system.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol nlocalm (referred from at_system.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol run_system (referred from at_system.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol igmp_T200ms (referred from at_igmp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol igmp_TabSize (referred from at_igmp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol igmp_table (referred from at_igmp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol init_ethernet (referred from at_ethernet.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol own_hw_adr (referred from at_ethernet.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol send_frame (referred from at_ethernet.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol arp_MaxRetry (referred from at_arp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol arp_Resend (referred from at_arp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol arp_TabSize (referred from at_arp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol arp_TimeOut (referred from at_arp.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol arp_table (referred from at_arp.o).
需要倒入Net_Config.c
再次编译成功通过
参考文章:http://www.keil.com/support/man/docs/rlarm/rlarm_ar_libfiles.htm
相关文章推荐
- TCP不会造成IP分片,而UDP和ICMP则会造成IP分片
- TCP与UDP的区别,以及它们各自的定义
- 黑马程序员--TCP&UDP
- udp-vs-tcp
- HTTP、TCP、UDP、Socket (…
- 怎样选择TCP还是选择UDP
- TCP和UDP的区别
- 浅析计算机网络(3) -- UDP与TCP
- TCP/IP TCP/IP是个协议组,可分为三个层次:网络层、传输层和应用层。 在网络层有IP协议、ICMP协议、ARP协议、RARP协议和BOOTP协议。 在传输层中有TCP协议与UDP协议。
- HTTP、TCP、UDP、Socket
- TCP/UDP/IP/ICMP
- SOCKET通信中TCP、UDP数据包大小的确定
- LINUX 下tcp 和 udp 套接字收发缓冲区的大小决定规则 .
- TCP/UDP Socket编程步骤
- TCP/UDP
- Python 实现 socket 通讯 (TCP/UDP)
- 【网络编程】——IP、TCP、UDP、ARP、ICMP结构
- socket与TCP/UDP编程~
- TCP/UDP端口NAT映射