help compieling smug in cygwin

Posted by Kiale on Thu 27 Mar 2003 01:35 PM — 8 posts, 28,893 views.

#0
ok heres the thing i foll the How about an example thing
it all gose good this is whatr i get

$ make
make smaug
make[1]: Entering directory `/home/Gaven/smaug/dist/src'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_comm.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_info.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_move.c
act_move.c:393:14: warning: trigraph ??> ignored
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_obj.c
act_obj.c: In function `can_layer':
act_obj.c:1389: warning: suggest explicit braces to avoid ambiguous `el
act_obj.c: In function `do_auction':
act_obj.c:2651: warning: suggest explicit braces to avoid ambiguous `el
act_obj.c:2675: warning: suggest explicit braces to avoid ambiguous `el
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_wiz.c
act_wiz.c:1637:49: warning: trigraph ??! ignored
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG boards.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG build.c
build.c: In function `fold_area':
build.c:6058: warning: suggest explicit braces to avoid ambiguous `else
build.c:6061: warning: suggest explicit braces to avoid ambiguous `else
build.c:6064: warning: suggest explicit braces to avoid ambiguous `else
build.c:6070: warning: suggest explicit braces to avoid ambiguous `else
build.c:6075: warning: suggest explicit braces to avoid ambiguous `else
build.c:6078: warning: suggest explicit braces to avoid ambiguous `else
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG clans.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG comm.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG comments.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG const.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG db.c
db.c: In function `load_resets':
db.c:1594: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG deity.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG fight.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG handler.c
handler.c: In function `get_eq_char':
handler.c:1335: warning: suggest explicit braces to avoid ambiguous `el
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG hashstr.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG ibuild.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG ident.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG interp.c
interp.c: In function `interpret':
interp.c:758: warning: int format, long int arg (arg 7)
interp.c:758: warning: int format, long int arg (arg 8)
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG magic.c
magic.c: In function `process_spell_components':
magic.c:985: warning: suggest explicit braces to avoid ambiguous `else'
magic.c:1003: warning: suggest explicit braces to avoid ambiguous `else
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG makeobjs.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG mapout.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG misc.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG mpxset.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG mud_comm.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG mud_prog.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG player.c
player.c:1024:18: warning: trigraph ??) ignored
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG polymorph.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG requests.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG reset.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG save.c
save.c: In function `load_char_obj':
save.c:949: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG shops.c
shops.c: In function `appraise_all':
shops.c:1095: warning: suggest explicit braces to avoid ambiguous `else
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG skills.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG special.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG tables.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG track.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG update.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG grub.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG stat_obj.c
stat_obj.c:147:13: warning: extra tokens at end of #undef directive
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG ban.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG services.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG planes.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG imm_host.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG colorize.c
colorize.c: In function `load_colors':
colorize.c:39: warning: implicit declaration of function `strcpy'
rm -f smaug
gcc -lcrypt -lregex -o smaug act_comm.o act_info.o act_move.o act_o
wiz.o boards.o build.o clans.o comm.o comments.o const.o db.o deity.o f
ndler.o hashstr.o ibuild.o ident.o interp.o magic.o makeobjs.o mapout.o
pxset.o mud_comm.o mud_prog.o player.o polymorph.o requests.o reset.o s
ps.o skills.o special.o tables.o track.o update.o grub.o stat_obj.o ban
es.o planes.o imm_host.o colorize.o
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld:
nd -lregex
collect2: ld returned 1 exit status
make[1]: *** [smaug] Error 1
make[1]: Leaving directory `/home/Gaven/smaug/dist/src'
make: *** [all] Error 2


ok now i do this

cd ../area
$ ../src/smaug.exe
afet i typ this in this is what i get bash: ../src/smaug.exe: No such file or directory

im so lost and so new at this any help would be nice thanks
#1
ok got that prob taken care of any way got a new one after all is done i do cg ../area the ../src/smaug.exe well any way it workes great but when i got to the src folder cnad click on the smaug.exe gives me a popu error

errror smaug.exe inable to locate compmemt this aplication has failed to start becose cygwin1.dll was not found blabla bla any way i moved the cygwin1.dll to my src folder and it looks like it wants to start but it crashes any help would be nice
USA #2
You need to move the smaug.exe into the area directory. Will also need a copy of cygwin1.dll in the same folder. Then you can double-click the .exe and startup the mud.
Australia Forum Administrator #3
Or, copy the cygwin1.dll into your path somewhere, eg. \windows\system, so it can be found in all directories.

If you do this, remember to upgrade it if you upgrade Cygwin, however you need to remember that anyway if you put a copy into your area directory.
#4
ah i fell stuped now after fealing all confident about my frist sussesful compiel grinz thanks for the help probly see me around whit more questions
#5
ok next qestion for cgwin i was trying to eddit the thorich say thats or whater it was usig cgwin this is what i did

vi act_obj.c
ash: vi: command not found

ok i no tha means i dont have the cygwin plug in so is there some thing elce i can download to do it with
USA #6
Any, literally ANY, text editor can be used to edit source files. On a winblows box Id recommend visiting liquidninja.com and downloading metapad as it will preserve the native formatting of *nix and dos based files. If you actually like notepad in winblows feel free to use it instead.
Australia Forum Administrator #7
How are you compiling with gcc if you don't have Cygwin? Anyway, as Meerclar said, any editor (eg. notepad) will do it.