Re: porting

From: Peter Ajamian (
Date: 06/29/01

Andyrt of DaneuranMUD wrote:
>    I've been developing my mud on a win32 platform now for just under a year
> and have recently received access to a host.  My host is running an unknown
> version of Unix, and i'm not much of a hand at such OSes.  I got it to
> configure correctly, however, when i pull a 'make circle' in the /src i get
> weird warnings and errors that don't pop up when i'm using good ole' MSVC.
> make ../bin/circle
> make[1]: Entering directory '/home/design/public_html/lockbox/mud/src'
> gcc -c -g -O2 -Wall  act.comm.c:15:
> utils.h:484: parse error before '->'

You've got a parse error in utils.h (duh).  That's the important one.

> act.comm.c: In function 'do_shout':
> act.comm.c:212: warning: array subscript has type 'char'

This is no big deal, you just have to cast the array subscript to type
int, if you do nothing it will still compile with the warning.

> The referenced line in act.comm.c reads
> sprintf(buf, "$n shouts< in %s>,\r\n     '%s'", language[(SPEAKING(ch)
> -190)], obuf);
> I assume its pointing to the language[(SPEAKING(ch) -190)] thing..

Yep, make that language[(int)SPEAKING(ch)-190]

Regards, Peter

   | FAQ: |
   | Archives: |

This archive was generated by hypermail 2b30 : 12/05/01 PST