Re: Odd Compiling error

From: Alex (
Date: 01/13/00

> 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
For this, it appears that you need to check these two lines, as you
appear to be assigning something to a non-pointer.  ie:

  struct char_data ch, *tch;

  ch = tch;

This would give those errors.

> gcc -c -g -O2 -Wall -Wno-char-subscripts  color.c conf.h
> gcc: Compilation of header file requested
Take that 'conf.h' off of that line in the Makefile.

> Yet, when i attempt a second time to compile the system, with no changes to
> the code at all. . It compiled without any problems.
That's because the color.o file has been compiled and it doesn't recompile
it because it doesn't need to.  That's entirely expected behaviour.


     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  |

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