Compiling problem.......

Posted by Ngu on Tue 03 Sep 2002 06:52 AM — 6 posts, 17,757 views.

#0
When i try to compile i get this....
$ make
make smaug
make[1]: Entering directory `/home/unknown/smaug/dist/src'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG comm.c
rm -f smaug
gcc -lcrypt -lregex -o smaug act_comm.o act_info.o act_move.o act_obj.o act_
wiz.o boards.o build.o clans.o comm.o comments.o const.o db.o deity.o fight.o ha
ndler.o hashstr.o ibuild.o ident.o interp.o magic.o makeobjs.o mapout.o misc.o m
pxset.o mud_comm.o mud_prog.o player.o polymorph.o requests.o reset.o save.o sho
ps.o skills.o special.o tables.o track.o update.o grub.o stat_obj.o ban.o servic
es.o planes.o imm_host.o colorize.o
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld: cann
ot find -lregex
collect2: ld returned 1 exit status
make[1]: *** [smaug] Error 1
make[1]: Leaving directory `/home/unknown/smaug/dist/src'
make: *** [all] Error 2
Australia Forum Administrator #1
Search the forum (see link below) for "regex". There are quite a few posts on the subject. One should be able to help you.
#2
I read all the posts about regex and it didn't help at all......
Australia Forum Administrator #3
Edit the file "Makefile" and try taking out "-lregex" from it.
#4
Thanks, that helped alot!! but, now when I try to run it this message comes up, when i double click the exe it says A Cygwin DLL is missing Cygwin1.Dll, when i try to run it in cygwin i get this

$ d:/cygwin/home/unknown/smaug/dist/smaug.exe
Tue Sep 3 21:49:33 2002 :: Booting Database
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Tue Sep 3 21:49:33 2002 :: [*****] BOOT: ---------------------[ Boot Log ]-----
---------------
Tue Sep 3 21:49:33 2002 :: Loading commands
Tue Sep 3 21:49:33 2002 :: [*****] BUG: Cannot open commands.dat
Australia Forum Administrator #5
You need to execute it in the area directory.

Either:

* put the directory which contians cygwin1.dll into your path environment variable
* put cygwin1.dll into a directory that is in your path (eg. \windows\system)
* copy cygwin1.dll into your area directory