Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Borland CBuilder6 and library files.

  • 24-02-2005 03:39PM
    #1
    Closed Accounts Posts: 1,567 ✭✭✭


    I have this problem with Borland cbuilder 6
    i'm using WSASocket to create a tcp/ip socket.
    SOCKET s = WSASocket(  AF_INET,
                                       SOCK_STREAM,
                                       IPPROTO_IP,
                                       NULL,
                                       0,
                                       WSA_FLAG_OVERLAPPED);
    
    But when compiling, i get the error:

    [Linker Error] Unresolved external 'WSASocketA' referenced from U:\TCP.OBJ

    I've tried looking to add the appropriate winsock library file into the
    project, but i can't seem to find a way.

    Any help is appreciated.


Comments

  • Closed Accounts Posts: 7,230 ✭✭✭scojones


    Requirements:
    Header Declared in Winsock2.h.
    Library Link to Ws2_32.lib.
    DLL Requires Ws2_32.dll.

    have you linked to Ws2_32.lib?


  • Closed Accounts Posts: 1,567 ✭✭✭Martyr


    I had to add ws2_32.lib to the project from the menu Project->Add to project.
    Working now.
    Thanks anyway sjones.


  • Closed Accounts Posts: 7,230 ✭✭✭scojones


    That's what I thought :)

    np.


Advertisement
Advertisement