Re: Odd Compiling error

From: Daniel A. Koepke (dkoepke@california.com)
Date: 01/13/00


On Thu, 13 Jan 2000, Lazarus DragonBlade wrote:

> --snip--
> gcc -c -g -O2 -Wall -Wno-char-subscripts  mobact.c
> gcc -c -g -O2 -Wall -Wno-char-subscripts  modify.c
> modify.c: In function `string_add':
> modify.c:710: warning: assignment makes integer from pointer without a cast
> modify.c:718: warning: passing arg 1 of `fclose' makes pointer from integer
> with
> out a cast

We'll need lines 710 of 718 to resolve these warnings.  Note that they're
warnings -- they're not errors.  This means modify.c compiled fine, but
the compiler had a little nitpick about some code in modify.c.  These may
or may not manifest as run-time errors, but they usually do, so you should
resolve them.

> gcc -c -g -O2 -Wall -Wno-char-subscripts  sedit.c
> gcc -c -g -O2 -Wall -Wno-char-subscripts  color.c conf.h
> gcc: Compilation of header file requested

Eh, there's a problem in your Makefile.  For some reason there's a
"conf.h" thrown in on the line to compile color.c.  Find something that
looks like,

    color.o: color.c conf.h sysdep.h blah blah blah
            $(CC) -c $(CFLAGS) color.c

Make sure there's not a "conf.h" after the second color.c.  Also, when
you're changing a Makefile, ensure that your editor doesn't replace tabs
with spaces.  The line indented 8 spaces (in this mailing) after the
"color.o:" line is supposed to have a tab as the first thing on that line.

-dak


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/10/01 PDT