TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALL
from: CHRISTOPHER BUTLER
date: 1997-05-01 17:02:00
subject: WinSock

Hello All!
I'm trying to do something with WINSOCK.LIB (very simple, open up, print
Winsock details, close), and when I run MAKE, I get the following:
MAKE Version 3.6  Copyright (c) 1991 Borland International
Available memory 22384640 bytes
        copy MAKE0001.$$$ wsocktst.cfg
        1 file(s) copied
        bin\tcc +WSOCKTST.CFG -c wsocktst.cpp
Turbo C++ Version 3.00 Copyright (c) 1992 Borland International
wsocktst.cpp:
        Available memory 3958904
        bin\tlink /c/v/x/LC:\TC\LIB @MAKE0000.$$$
Turbo Link  Version 5.0 Copyright (c) 1992 Borland International
Error: Undefined symbol WSACLEANUP in module wsocktst.cpp
Error: Undefined symbol WSASTARTUP in module wsocktst.cpp
** error 1 ** deleting wsocktst.exe
Does anyone know what's up?
Here's the makefile:
=== Begin makefile ===
.AUTODEPEND
#  *Translator Definitions*
CC = bin\tcc +WSOCKTST.CFG
TASM = bin\tasm
TLIB = bin\tlib
TLINK = bin\tlink
LIBPATH = C:\TC\LIB
INCLUDEPATH = C:\TC\INCLUDE
#  *Implicit Rules*
.c.obj:
  $(CC) -c {$< }
.cpp.obj:
  $(CC) -c {$< }
#  *List Macros*
EXE_dependencies =  \
 wsocktst.obj \
 lib\winsock.lib
#  *Explicit Rules*
wsocktst.exe: wsocktst.cfg $(EXE_dependencies)
  $(TLINK) /c/v/x/L$(LIBPATH) @&&|
c0h.obj+
/v- wsocktst.obj
wsocktst
  # no map file
/v+ lib\winsock.lib+
emu.lib+
mathh.lib+
ch.lib
|
#  *Individual File Dependencies*
wsocktst.obj: wsocktst.cfg wsocktst.cpp
#  *Compiler Configuration File*
wsocktst.cfg: wsocktst.mak
  copy &&|
-mh
-2
-w+
-v
-vi-
-I$(INCLUDEPATH)
-L$(LIBPATH)
| wsocktst.cfg
=== End makefile ===
Anyone?
Christopher
E-Mail: chris@db-bbs.coracle.com
--- FMail/Win32 1.22
---------------
* Origin: Death Butler BBS, +44-1582-620141, 24 Hours (2:257/135)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.