curious to see what you can do with this Nick....

Posted by Translucent Hate on Thu 03 May 2001 05:13 AM — 5 posts, 19,878 views.

USA #0
gcc -I. -I.. -DNETBSD -O2 -c -o random.o random.c
random.c:3: conflicting types for `random'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.25
/../../../../include/stdlib.h:117:
previous declaration of `random'
make[1]: *** [random.o] Error 1
make[1]: Leaving directory `/home/justin/dgd/dgd/src/host'
make: *** [a.out] Error 2

the make is on

http://www.ultranet.com/~jjmartin/temp/makefile

any suggestions would be great. ;)

the rom one is doing excellent too.. thanks for the help.
Australia Forum Administrator #1
You might need to add the OLD_RAND define to the makefile.


C_FLAGS = -Wall $(PROF) $(NOCRYPT) -DOLD_RAND
USA #2
tried putting it a few places... but nothing...
any suggestion in particular where to put it?

also... there is a line in the make

CFLAGS= -I. -Icomp -Ilex -Ied -Iparser -Ikfun $(CCFLAGS)

obviously its not the same as C_FLAGS because I already
tried that, but everything else seems to go smooth until
that error unfortunately... if you want the source
to try its at ftp://ftp.imaginary.com/pub/LPC/servers/DGD/dgd-1.2.tar.gz
i haven't got into the mudlib yet but its at
ftp://ftp.imaginary.com/pub/LPC/servers/DGD/lib/Melville/melville_0.9.tar.gz

this is within the melville readme about starting the mud:
dgd.exe Melvmud >& ../melville/log/driver &

hope this helps a little... i'm not a very good coder, but
if i could get an lpc mud up, it would really help, since i'm better with LPC code then ROM...
Australia Forum Administrator #3
I would add it to that line, like this:


CFLAGS= -I. -Icomp -Ilex -Ied -Iparser -Ikfun $(CCFLAGS) -DOLD_RAND



However this might not work for LPC, they might do their random stuff differently.

I'm sorry that I don't have time to debug every possible variation of MUD servers out there, however the guides I have on these pages should point you in the right direction. For instance, I would investigate why there are different types of 'random'. Maybe one of the .h files doesn't need including. Look inside ROM and see what happens when OLD_RAND is defined (search for that word). Then see if you can do a similar thing, whatever that is, with LPC.
USA #4
sorry man... i just figured i'd ask
because you seem to be the only resource
that can actually give me an answer that
not only is reasonable, but actually makes
sense... but you are right, and i won't
bug you with this source again.

my apologies.