Alright, so, I was interested in getting ROM again to play with, so I checked out QuickMUD, thought it sounded snazzy, downloaded it, got cygwin, downloaded the required stuff from devel (make, gcc and all that good stuff). I'm using the Makefile provided in what I assume is the most recent version of QuickMUD here: http://www.mudbytes.net/index.php?a=files&cid=259
However, when I do a make on the src folder, I get this error:
$ make
gcc -O -g3 -Wall -DIMC -DUMCROM -c -o obj/db.o db.c
db.c:56: error: conflicting types for 'random'
/usr/include/cygwin/stdlib.h:27:error: previous declaration of 'random' was here
db.c:56: error: conflicting types for 'random'
/usr/include/cygwin/stdlib.h:27:error: previous declaration of 'random' was here
db.c:60: error: conflicting types for 'srandom'
/usr/include/cygwin/stdlib.h:28:error: previous declaration of 'srandom' was here
db.c:60: error: conflicting types for 'srandom'
/usr/include/cygwin/stdlib.h:28:error: previous declaration of 'srandom' was here
make: *** [obj/db.o] Error 1
This is the makefile:
# $Id $
# Makefile for Rom24. Works fine on my Debian system.
# You may need to use 'gmake' on BSD systems.
CC = gcc
RM = rm
EXE = rom
PROF = -O -g3
C_FLAGS = $(PROF) -Wall
L_FLAGS = $(PROF) -lcrypt
#IMC2 - Comment out to disable IMC2 support
IMC = 1
ifdef IMC
C_FLAGS := $(C_FLAGS) -DIMC -DIMCROM
endif
# Source Files
SRC_FILES := $(wildcard *.c)
# Object Files
OBJ_DIR = obj
OBJ_FILES := $(patsubst %.c,$(OBJ_DIR)/%.o,$(SRC_FILES))
rom: $(OBJ_FILES)
$(RM) -f $(EXE)
$(CC) -o $(EXE) $(OBJ_FILES) $(L_FLAGS)
$(OBJ_DIR)/%.o: %.c
$(CC) $(C_FLAGS) -c -o $@ $<
clean:
$(RM) -f $(OBJ_FILES) $(EXE) *~ *.bak *.orig *.rej
distro:
make clean
cd ../..
$(RM) -f log/*.log
tar zvcf quickmud-`date -I`.tar.gz QuickMUD
Any help would be greatly appreciated.
|