DSock Library

This is a discussion on DSock Library within the C Programming forums, part of the General Programming Boards category; i downloaded the DSock lib from the internet in order the do sockets in Dos but when i try to ...

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    15

    DSock Library

    i downloaded the DSock lib from the internet in order the do sockets in Dos
    but when i try to compile i get this error:
    C:\TCPP\BIN>TCC server.c dsock.lib
    Turbo C++ Version 1.01 Copyright (c) 1990 Borland International
    server.c:
    Turbo Link Version 3.01 Copyright (c) 1987, 1990 Borland International
    Error: Fixup overflow in module server.c at _TEXT:003A, target = _SocketDestory
    Error: Fixup overflow in module server.c at _TEXT:0035, target = _SocketClose
    Error: Fixup overflow in module server.c at _TEXT:002E, target = _SocketConnect
    Error: Fixup overflow in module server.c at _TEXT:0027, target = _DSock_Resolve
    Error: Fixup overflow in module server.c at _TEXT:0009, target = _SocketCreate

    the code is:
    Code:
    #include <stdio.h>
    #include <dsock.h>
    
    int main(void)
    {
    	SOCKET s = SocketCreate(TCP_SOCKET);
    	if(s==INVALID_SOCKET)
    	{
      		printf("SocketCreate() error\n");
      		return 0;
    	}
    	SocketConnect(s,DSock_Resolve("www.dmp.com.tw"),80);
    	SocketClose(s);
    	SocketDestory(s);
    	return 0;
    }

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    This is probably due to the fact that you're using an old compiler, and / or you're using the incorrect memory model. (See, with Google you too can look smart!)

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Dec 2002
    Posts
    15

    I'm using

    Turbo C++ as the website said u need to use ..
    and i didn't understood about the memory

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What's an import library?
    By chiefmonkey in forum C++ Programming
    Replies: 1
    Last Post: 06-19-2009, 06:00 PM
  2. Property Set Library (PSL) - Announcement
    By vultur_gryphus in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 05-29-2008, 07:04 AM
  3. Makefile for a library
    By sirmoreno in forum Linux Programming
    Replies: 5
    Last Post: 06-04-2006, 05:52 AM
  4. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 08:55 AM
  5. better c string functions
    By samps005 in forum C Programming
    Replies: 8
    Last Post: 11-04-2003, 01:28 PM

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