Trying to create a simple server, using the 'socket' type functions, but i get the errors:
.\obj\workspace.axf: Error: L6218E: Undefined symbol bsd_NumSocks (referred from at_bsd.o). .\obj\workspace.axf: Error: L6218E: Undefined symbol bsd_RcvTout (referred from at_bsd.o). .\obj\workspace.axf: Error: L6218E: Undefined symbol bsd_T200ms (referred from at_bsd.o). .\obj\workspace.axf: Error: L6218E: Undefined symbol bsd_socket (referred from at_bsd.o).
I have the TCP_CM3.lib included. The docs on Keil's website calls for the "RL-TCPnet library", which i assume is 'TCP_CM3.lib' (or is it?).
Any ideas?
PS. i've tried using the tcp_get_socket function and it works, but i'd like to use the 'socket' class of functions instead.
I've not (yet) used the BSD functionality, but have looked into it a little.
Those four symbols are given in the file Net_lib.C:
#if (BSD_ENABLE) BSD_INFO bsd_socket[BSD_NUMSOCKS + BSD_SRVSOCKS]; U8 const bsd_NumSocks = BSD_NUMSOCKS + BSD_SRVSOCKS; U8 const bsd_T200ms = TICK_RATE / 5; U16 const bsd_RcvTout = BSD_RCVTOUT * TICK_RATE; #ifdef __RTX OS_MUT bsd_mutex; #endif #endif
The file Net_lib.c is in:
\ARM\RV31\INC
Net_lib.c is included at the bottom of the file:
Net_Config.c
which would normally be included in your project and is where you select (amongst other things) the BSD functionality.
At the risk of appearing daft, I wonder whether you've enabled it in that file?