Date: Tue, 22 Jun 1999 09:34:23 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Jeremy Atto cc: djgpp AT delorie DOT com Subject: Re: Making libnet In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 21 Jun 1999, Jeremy Atto wrote: > I don't know if this is the appropriate news group for this. Sorry if it > isn't. I downloaded a library called libnet which I was pointed to from a > post in this NG. Anyway I tried to make it and I get a bunch of errors. Please in the future don't uuencode text files, send them as plain text in the body of your message. You are effectively preventing a lot of people from helping you because many people cannot be bothered to open binary attachments or look for uudecode (which is not a standard program on a PC). Here's the error message: c:/djgpp/bin/make.exe -C lib/ lib make.exe[1]: Entering directory `c:/djgpp/libnet/lib' gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes \ -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude \ -c drivers/local.c -o drivers/local.o cc1.exe: warnings being treated as errors drivers/local.c:46: warning: type defaults to `int' in declaration of \ `next_port' This simply says that the function `next_port' was declared with no return type, and that the compiler treats that function as returning an int. But because the compiler switches cause it to treat warnings as errors, the compilation stops there. The solution is to modify the source to declare the function properly.