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;
}