AnsweredAssumed Answered

Error[Li005]: no definition for "gsName" when trying to use DHCP

Question asked by Jesper Evertsson on May 27, 2015
Latest reply on May 28, 2015 by Jesper Evertsson

Hi, I'm trying to get the eth_to_serial MQX example to work with DHCP. It was no problem to make it work tiwh static ip, but when I try to use DHCP instead I get a linker error saying:

Error[Li005]: no definition for "gsName" [referenced from ipcfg.o(rtcs.a)]


Here is my code:


_enet_address enet_addr = ENET_MAC;


ipData.ip = ENET_IPADDR;
ipData.mask = ENET_IPMASK;
ipData.gateway = ENET_IPGATEWAY;


uint32_t status = RTCS_create();
if (status == RTCS_OK)
    status = ipcfg_init_device(BSP_DEFAULT_ENET_DEVICE, enet_addr);
    if (status == RTCS_OK)
    //status = ipcfg_bind_staticip(BSP_DEFAULT_ENET_DEVICE, &ipData);
    status = ipcfg_bind_dhcp_wait(BSP_DEFAULT_ENET_DEVICE, FALSE, NULL);
    if (status == RTCS_OK)
        _task_create(0, UDP_TASK_INDEX, 0);