Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Borland CBuilder6 and library files.

Options
  • 24-02-2005 3: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