Winsock .lib files?

This is a discussion on Winsock .lib files? within the Windows Programming forums, part of the Platform Specific Boards category; I am working on a sockets program. What files do I include in Project Options with Dev-C++ for listen(); socket(); ...

  1. #1
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Question Winsock .lib files?

    I am working on a sockets program. What files do I include in Project Options with Dev-C++ for listen(); socket(); and connect();??
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: trifaze_mattu@lycos.com

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  2. #2
    Registered User WayTooHigh's Avatar
    Join Date
    Aug 2001
    Posts
    101
    try wsock32.lib
    Sometimes, the farthest point from the center is the center itself.

    Your life is your canvas, it's only as beautiful as you paint it.

  3. #3
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339
    Yo,

    Use wsock32.lib

    Cheers
    TNT
    TNT
    You Can Stop Me, But You Cant Stop Us All

  4. #4
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    I already..

    I already tried it, but it didn't work.
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: trifaze_mattu@lycos.com

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  5. #5
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339
    Hi,

    What error are u getting when u include that lib? It may be a header that you are excluding, winsock.h
    TNT
    You Can Stop Me, But You Cant Stop Us All

  6. #6
    zen
    zen is offline
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    Dev C++ uses a different library, check this thread.
    zen

  7. #7
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Post The error I get is..

    This is in the linker errors:

    c:\my documents\keyboard.o(.text+0x34a):keyboard.cpp: undefined reference to `socket(int, int, int)'
    c:\my documents\keyboard.o(.text+0x3a8):keyboard.cpp: undefined reference to `connect(int, sockaddr *, int)'
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: trifaze_mattu@lycos.com

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  8. #8
    Registered User
    Join Date
    Sep 2001
    Posts
    164
    I use '-lwsock'. That works.
    // Gliptic

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Error opening files in a different dir
    By Ozzie in forum C++ Programming
    Replies: 3
    Last Post: 10-09-2008, 06:55 AM
  2. Program Deployment and DLL/OCX Files?
    By dfghjk in forum C++ Programming
    Replies: 5
    Last Post: 06-16-2008, 02:47 AM
  3. accessing all files in a folder.
    By pastitprogram in forum C++ Programming
    Replies: 15
    Last Post: 04-30-2008, 10:56 AM
  4. Help with loading files into rich text box
    By blueparukia in forum C# Programming
    Replies: 3
    Last Post: 10-19-2007, 12:59 AM
  5. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21