Dynamic C 10.60 and #use "dcrtcp.lib"

Hi,

I’ve been following along with the sample program UDP_ECHO_DH.c and trying to set up udp in my own program. Issue is that when I include

#use “dcrtcp.lib” I get

line 127 : ERROR IP.LIB : Undefined (but used) global label _pbuf_pool

and I’m not sure where Im using it. Im just including the defines right now. The offending line in IP.lib is

extern Pool_t _pbuf_pool;

My other issue is that when I try to open a socket with

sock_init_or_exit(1);

I suddenly get all these undefined variable and out of scope errors for global variables and scructs that I have defined. Im not sure why thats happening.

Any help is appreciated. I have an RCM5700 and Dynamic C 10.60.

Thanks!

1 Like

main()
{
if (sock_init()) return 1;

}

put sok_init() at the first line into the man function
and put all definitinons before #use “dcrtcp.lib”

#define TCPCONFIG 1
#define _PRIMARY_STATIC_IP “192.168.2.150”
#define _PRIMARY_NETMASK “255.255.255.0”
#define MY_GATEWAY “192.168.2.1”

#use “dcrtcp.lib”

1 Like