Need help building msclient

Version 1
    This document was generated from CDN thread

    Created by: John Dwyer on 14-10-2009 08:01:49 PM
    Was able to build msctilib.lib
    Was able to compile msclient in VC++ 2008
    not able to link due to unresolved externals below
     
    1>execinput.obj : error LNK2019: unresolved external symbol _closesocket@4 referenced in function "public: __thiscall com_cisco::CExecInput::~CExecInput(void)" (??1CExecInput@com_cisco@@QAE@XZ)
    1>execinput.obj : error LNK2019: unresolved external symbol _send@16 referenced in function "public: void __thiscall com_cisco::CExecInput::execInput(char *,char *)" (?execInput@CExecInput@com_cisco@@QAEXPAD0@Z)
    1>execinput.obj : error LNK2019: unresolved external symbol _ntohl@4 referenced in function "public: void __thiscall com_cisco::CExecInput::execInput(char *,char *)" (?execInput@CExecInput@com_cisco@@QAEXPAD0@Z)
    1>msctilib.lib(unpack.obj) : error LNK2001: unresolved external symbol _ntohl@4
    1>msctilib.lib(floatfield.obj) : error LNK2001: unresolved external symbol _ntohl@4
    1>execinput.obj : error LNK2019: unresolved external symbol _connect@12 referenced in function "private: void __thiscall com_cisco::CExecInput::parseConnect(void)" (?parseConnect@CExecInput@com_cisco@@AAEXXZ)
    1>execinput.obj : error LNK2019: unresolved external symbol _htons@4 referenced in function "private: void __thiscall com_cisco::CExecInput::parseConnect(void)" (?parseConnect@CExecInput@com_cisco@@AAEXXZ)
    1>msctilib.lib(pack.obj) : error LNK2001: unresolved external symbol _htons@4
    1>execinput.obj : error LNK2019: unresolved external symbol _inet_addr@4 referenced in function "private: void __thiscall com_cisco::CExecInput::parseConnect(void)" (?parseConnect@CExecInput@com_cisco@@AAEXXZ)
    1>execinput.obj : error LNK2019: unresolved external symbol _gethostbyname@4 referenced in function "private: void __thiscall com_cisco::CExecInput::parseConnect(void)" (?parseConnect@CExecInput@com_cisco@@AAEXXZ)
    1>execinput.obj : error LNK2019: unresolved external symbol _setsockopt@20 referenced in function "private: void __thiscall com_cisco::CExecInput::parseConnect(void)" (?parseConnect@CExecInput@com_cisco@@AAEXXZ)
    1>execinput.obj : error LNK2019: unresolved external symbol _socket@12 referenced in function "private: void __thiscall com_cisco::CExecInput::parseConnect(void)" (?parseConnect@CExecInput@com_cisco@@AAEXXZ)
    1>execinput.obj : error LNK2019: unresolved external symbol _recv@16 referenced in function "private: static void __cdecl com_cisco::CExecInput::recvMsg(void *)" (?recvMsg@CExecInput@com_cisco@@CAXPAX@Z)
    1>msctilib.lib(unpack.obj) : error LNK2019: unresolved external symbol _ntohs@4 referenced in function "protected: unsigned short __thiscall com_cisco::CUnpack::getUSHORT(unsigned short)" (?getUSHORT@CUnpack@com_cisco@@IAEGG@Z)
    1>msctilib.lib(floatfield.obj) : error LNK2001: unresolved external symbol _ntohs@4
    1>msctilib.lib(pack.obj) : error LNK2019: unresolved external symbol _htonl@4 referenced in function "protected: void __thiscall com_cisco::CPack::addUINT(unsigned int)" (?addUINT@CPack@com_cisco@@IAEXI@Z)
    1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
    1>Debug\msclient.exe : fatal error LNK1120: 13 unresolved externals
    1>msclient - 18 error(s), 29 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Subject: RE: Need help building msclient
    Replied by: John Dwyer on 14-10-2009 11:15:57 PM
    resolved by adding ws2_32.lib to Linker->Input->Additional Dependencies
     
    Looks like there is no main() or WinMain()

    Subject: RE: Need help building msclient
    Replied by: John Dwyer on 29-10-2009 08:15:22 PM
    got both msclient and msctilib to compile and work