problems with wsock32.lib

This is a discussion on problems with wsock32.lib within the Windows Programming forums, part of the Platform Specific Boards category; My system is WinMe I use Borland C++ 3.1 I try to compile my program but i only get the ...

  1. #1
    Peleo
    Guest

    Unhappy problems with wsock32.lib

    My system is WinMe
    I use Borland C++ 3.1
    I try to compile my program but i only get the message error:

    "Compiling Probe.c:
    Linking Probe.exe:
    Linker Error: Bad Object File record in module BORLANDC\LIB\WSOCK32.LIB"
    the code is the following:

    #include <stdio.h>
    #include <winsock.h>

    int main()
    {
    WSADATA wsadata;
    if (WSAStartup(0x101, &wsadata) != NULL)
    {
    printf("Cannot initialize WinSock!\n");
    return 1;
    {

    return 0;
    }


    i've tried with winsock.lib, wsockx.lib, winsockx.kib, and some other, i would like someone to help me to solve my problem.

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    18

    Arrow this ...

    #include <windows.h>
    first
    then if it doesn`t work ... the file is broken !
    What would this world be without some1 to break into your comuter or crack your software !????

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 03:59 AM
  2. C Pointers Problems
    By mhelal in forum C Programming
    Replies: 8
    Last Post: 01-10-2007, 06:35 AM
  3. String Manipulation problems -_-
    By Astra in forum C Programming
    Replies: 5
    Last Post: 12-13-2006, 05:48 PM
  4. contest problems on my site
    By DavidP in forum Contests Board
    Replies: 4
    Last Post: 01-10-2004, 09:19 PM
  5. DJGPP problems
    By stormswift in forum C Programming
    Replies: 2
    Last Post: 02-26-2002, 04:35 PM

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