Mail Archives: djgpp/1999/06/22/02:37:02
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 -