delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/21/13:45:15

From: "Bill Galbraith" <BILLG AT p3 DOT enzian DOT com>
Organization: Enzian Technology, Inc.
To: djgpp AT delorie DOT com
Date: Fri, 21 Jun 1996 13:26:47 EST
Subject: TCP library installation instructions
Message-ID: <4E438B5255@P3.ENZIAN.COM>

I have just download the TCP library for DJGPP v2.0 from the 
University of Vienna, compiled, and integrated it into my DJGPP 
directories, and thought I'd share the information.






Installation instructions for TCP library
Bill Galbraith
June 21, 1996


BUILDING THE LIBRARY
--------------------
1. From site  -  ftp://lab1.psy.univie.ac.at
   directory  - /pub/djgpp/tcpip
   download   - tcplib-dj200.1.tar.gz

   Note: Upon download to PC, file name becomes TCPLIB-D.GZ

2. Move this file to directory d:\tmp

3. >gzip -d tcplib-d.gz
   >tar xvf tcplib-d

4. cd tcplib\obj

5. make LAB=d:/tmp all     (or whatever the directory was in step 2)

   Note : This will generate a lot of warnings, and a file creation 
   error at the end, but just ignore all of these. PING.EXE should 
   be created.

6. Create a WATTCP.CFG file.  Either copy the one from 
   d:\tmp\tcplib\tcpsys or make your own. Mine says:

      my_ip=204.240.62.23      (Change this to your address)
      netmask=255.255.255.0

7. Ping should be ready to run.

8. del *.o




INTEGRATION OF THE TCP LIBRARY AND FILES INTO THE DJGPP v2.0
------------------------------------------------------------
   Note: In the following instructions, it is assummed that the DJGPP 
   version 2.0 software is in the directory:  d:\djgpp.v2


1. copy d:\tmp\tcplib\obj\libtcp.a d:\djgpp.v2\lib

2. cd d:\tmp\tcplib\include\tcp
   copy *.* d:\djgpp.v2\include

3. cd d:\tmp\tcplib\include\sys

      The file TYPES.H has to be combined with the file
      d:\djgpp.v2\include\sys\TYPES.H, in the d:\djgpp.v2\include 
      directory.

4. cd d:\tmp\tcplib\include

      The file ERRNO.H has to be combined with the file
      d:\djgpp.v2\include\ERRNO.H, in the d:\djgpp.v2\include 
      directory.

      The file TIME.H has to be combined with the file
      d:\djgpp.v2\include\TIME.H, in the d:\djgpp.v2\include 
      directory.




TESTING THE CONFIGURATION
-------------------------
1. To test the installation, copy the folowing files to some other
directory (like d:\test) :

      d:\tmp\tcplib\obj\ping.c
      d:\tmp\tcplib\obj\wattcp.cfg


2. To compile, either :

   a. Create a file MAKEFILE, which looks like:

          INCL_DIR = -I$(DJDIR)/include

          ping.exe : ping.c
            gcc -c -O2 -Wall $(INCL_DIR) -o ping.o ping.c
            gcc ping.o -g -ltcp -o ping
            coff2exe ping
            rm ping
            rm ping.o

      Note : The lines following the ping.exe line HAVE to have a TAB
      at the begining of the line.


   b. At the DOS prompt, type the following:

          >gcc -c -O2 -Wall -I(DJDIR)/include -o ping.o ping.c
          >gcc ping.o -g -ltcp -o ping
          >coff2exe ping
          >rm ping
          >rm ping.o


3. PING.EXE should now be ready to run...

      >PING {some address}

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019