Date: Sun, 9 Jun 1996 17:17:06 +0200 (IST) From: Eli Zaretskii To: djgpp AT delorie DOT com Subject: Re: TCP library? Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 5 Jun 1996, Andrew Mor wrote: > The only problem is that it won't make. Specifically, pctcp.o > won't make. I redirected the output from make, and tried to > track down the problem with no success. > > In file included from pctcp.c:26: > c:/djgpp/include/tcp/osdep.h:148: warning: `FD_SET' redefined > c:/djgpp/include/sys/types.h:50: warning: this is the location of the previous d > efinition > c:/djgpp/include/tcp/osdep.h:149: warning: `FD_CLR' redefined > c:/djgpp/include/sys/types.h:51: warning: this is the location of the previous d There is no magic wand that will get you through these. You will have to look at the messages one by one, understand what are they telling and correct their causes. GCC helps you by pointing out both places where these symbols are defined. In this case, I'd guess that the original code was written either for DJGPP v1 or for a compiler that doesn't define FD_XXX macros; DJGPP v2 already has definitions for them. So you should probably look on osdep.h and ifdef out the definitions of FD_SET, FD_CLR, etc. But once you get past this, you will probably see more such problems, and there is no way to solve them other than read the error messages and fix the code that's causing them. After all, that's what programming is all about, right? Btw, if you are using the same TCP library as found at ftp://lab1.psy.univie.ac.at/pub/tcplib-dj200/tcplib-dj200.1.tar.gz, then a message was posted here in the past telling that you can safely disregard all the warnings during compilation. Also, I think there is a port of the WATTCP library to DJGPP 2.0 available at ftp://ftp.msen.com/pub/vendor/snsi/wattcp/gnu-c/. I didn't try it, so I don't know whether it will compile clean.