This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Build errors for UDP socket example

Other Parts Discussed in Thread: SYSBIOS

Hi There,

    I have copied functions from existing examples to write code for UDP client and socket. Following are the linker errors and I think I am missing to input some library for linking. Quick help is very much appreciated. Here are the linking errors.

 

Description    Resource    Path    Location    Type
errors encountered during linking; "UDPExample.out" not built    UDPExample             C/C++ Problem
Linking failed. Check the Console window for details.    UDPExample        Unknown    C/C++ Problem
unresolved symbol _oscfg, first referenced in ./UDPServer.obj    UDPExample             C/C++ Problem
unresolved symbol CfgAddEntry, first referenced in ./UDPServer.obj    UDPExample             C/C++ Problem
unresolved symbol CfgFree, first referenced in ./UDPServer.obj    UDPExample             C/C++ Problem
unresolved symbol CfgNew, first referenced in ./UDPServer.obj    UDPExample             C/C++ Problem
unresolved symbol DaemonFree, first referenced in ./UDPServer.obj    UDPExample             C/C++ Problem
unresolved symbol DaemonNew, first referenced in ./UDPServer.obj    UDPExample             C/C++ Problem
unresolved symbol inet_addr, first referenced in ./UDPServer.obj    UDPExample             C/C++ Problem
unresolved symbol mmZeroInit, first referenced in ./UDPServer.obj    UDPExample             C/C++ Problem
unresolved symbol NC_NetStart, first referenced in ./UDPServer.obj    UDPExample             C/C++ Problem
unresolved symbol NC_SystemClose, first referenced in ./UDPServer.obj    UDPExample             C/C++ Problem
unresolved symbol NC_SystemOpen, first referenced in ./UDPServer.obj    UDPExample             C/C++ Problem
unresolved symbol recvncfree, first referenced in ./UDPServer.obj    UDPExample             C/C++ Problem
unresolved symbol recvncfrom, first referenced in ./UDPServer.obj    UDPExample             C/C++ Problem
unresolved symbol res_mgr_init_cppi, first referenced in ./UDPServer.obj    UDPExample             C/C++ Problem
unresolved symbol res_mgr_init_pass, first referenced in ./UDPServer.obj    UDPExample             C/C++ Problem
unresolved symbol res_mgr_init_qmss, first referenced in ./UDPServer.obj    UDPExample             C/C++ Problem
unresolved symbol sendto, first referenced in ./UDPServer.obj    UDPExample             C/C++ Problem
unresolved symbol setsockopt, first referenced in ./UDPServer.obj    UDPExample             C/C++ Problem

Regards,

Santosh

  • Are you adding the netmain.h file? The reference errors that you mentioned are in the NDK stack.

     

    Thanks,

    Arun.

  • Hi,

    Even I am facing the same issue. The problem is it is not very clear what all libraries are really need to be linked to create an executable for a UDP client. I am using MCSDK 1.0 and CCS V5 version and trying to build a UDP client but even including netmain.h does not solve the issue as the errors comes during the linking stage.

    So it would be helpful if it can be suggested that what all NDK libraries are required to include and what would be the order for C64PLUS architecture.

    Regards

    Deepak

  • Arun, 

    What needs to be done to fix these linking errors? I have the same problem, and I can follow the symbol, for example CfgAddEntry follows into netctrl.h for me. 

    My settings are:

    IPC 1.24.3.32

    MCSDK 2.1.2.6

    MCSDK PDK 1.1.2.6

    NDK 2.21.1.38

    SYSBIOS 6.33.6.50

    XDC 3.24.6.63

  • Did you manage to solve this problem?

    I have exatly the same problem... but the problem starts if I use tcpEcho demo and I try to add DHCP server to it... Without DHCP server in .cfg file, everything works fine...
  • Hi Artur,
    We recommend you to start new thread for any issues instead of following up on old threads. Thank you.