delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/22/02:37:02

Date: Tue, 22 Jun 1999 09:34:23 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Jeremy Atto <jtatto AT home DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Making libnet
In-Reply-To: <Trkb3.8249$g02.18057@news.rdc1.ab.wave.home.com>
Message-ID: <Pine.SUN.3.91.990622092950.25569K-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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.

- Raw text -


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