Gammon Forum
Entire forum
SMAUG
Compiling the server
smaug fuss 1.6 compiling problem need help
smaug fuss 1.6 compiling problem need help
|
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Pages: 1 2
Posted by
| Gorock
(149 posts) bio
|
Date
| Tue 13 Sep 2005 06:00 PM (UTC) |
Message
| this is what i see when i type make
I just lost my job, I might lose my home, and I might have to sell the server.
make[1]: Entering directory `/home/gorock/mud/src'
gcc -c -g3 -Wall -DREQUESTS -DSMAUG -Dsun -DSYSV act_comm.c
act_comm.c: In function `chan_social':
act_comm.c:462: warning: operation on `argument' may be undefined
act_comm.c: In function `talk_channel':
act_comm.c:777: warning: suggest parentheses around && within ||
act_comm.c: In function `init_profanity_checker':
act_comm.c:3587: warning: implicit declaration of function `re_comp'
act_comm.c:3587: warning: assignment makes pointer from integer without a cast
act_comm.c: In function `is_profane':
act_comm.c:3702: warning: implicit declaration of function `re_exec'
gcc -c -g3 -Wall -DREQUESTS -DSMAUG -Dsun -DSYSV act_info.c
gcc -c -g3 -Wall -DREQUESTS -DSMAUG -Dsun -DSYSV act_move.c
act_move.c:393:14: warning: trigraph ??> ignored
act_move.c: In function `generate_exit':
act_move.c:614: warning: use of cast expressions as lvalues is deprecated
gcc -c -g3 -Wall -DREQUESTS -DSMAUG -Dsun -DSYSV act_obj.c
act_obj.c: In function `can_layer':
act_obj.c:1402: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c: In function `do_auction':
act_obj.c:2670: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c:2694: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -g3 -Wall -DREQUESTS -DSMAUG -Dsun -DSYSV act_wiz.c
act_wiz.c:1749:49: warning: trigraph ??! ignored
act_wiz.c:7507:29: missing terminating " character
act_wiz.c: In function `do_showclass':
act_wiz.c:7508: error: `wWeapon' undeclared (first use in this function)
act_wiz.c:7508: error: (Each undeclared identifier is reported only once
act_wiz.c:7508: error: for each function it appears in.)
act_wiz.c:7508: error: parse error before ':' token
act_wiz.c:7508:15: invalid suffix "d" on integer constant
act_wiz.c:7508:36: invalid suffix "d" on integer constant
act_wiz.c:7508: error: stray '\' in program
act_wiz.c:7508: error: stray '\' in program
act_wiz.c:7508:42: missing terminating " character
make[1]: *** [act_wiz.o] Error 1
make[1]: Leaving directory `/home/gorock/mud/src'
make: *** [all] Error 2
gorock@frostmud:~/mud/src$
please help i have been trying to get it right for days
| top |
|
Posted by
| Zeno
USA (2,871 posts) bio
|
Date
| Reply #1 on Tue 13 Sep 2005 06:06 PM (UTC) |
Message
| Are you sure you're using FUSS? FUSS has no warnings normally. If you're using Cygwin, make sure you've enabled the Makefile flag.
Can you show us the lines in act_wiz.c around line 7508? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | top |
|
Posted by
| Gorock
(149 posts) bio
|
Date
| Reply #2 on Tue 13 Sep 2005 09:07 PM (UTC) |
Message
| well i downloaded smaug16fuss.tgz then tar xvzf smaug16fuss.tgz from cygwin home and it said a bunch of stuff then i logout log on to iXplorer transfer the smaug file that was created to the host computer and then chmod +x rmstartup edit it then go to src file and type make and it never compiles right the system admin said there was a bug a stuff but i cant seem to get it right i am gonna delete smaug and re run it for like the 15th time just to see | top |
|
Posted by
| Gorock
(149 posts) bio
|
Date
| Reply #3 on Tue 13 Sep 2005 09:08 PM (UTC) |
Message
| and how don i enable the makefile flag | top |
|
Posted by
| Gorock
(149 posts) bio
|
Date
| Reply #4 on Tue 13 Sep 2005 09:32 PM (UTC) |
Message
| ok here is what i get when i type make
gorock@frostmud:~/mud/src$ make
make smaug
make[1]: Entering directory `/home/gorock/mud/src'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_comm.c
act_comm.c: In function `is_profane':
act_comm.c:3347: warning: implicit declaration of function `re_exec'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_info.c
act_info.c: In function `do_hset':
act_info.c:2041: warning: implicit declaration of function `RENAME'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_move.c
act_move.c:393:14: warning: trigraph ??> ignored
act_move.c: In function `generate_exit':
act_move.c:604: warning: use of cast expressions as lvalues is deprecated
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 `else'
act_obj.c: In function `do_auction':
act_obj.c:2651: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c:2675: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_wiz.c
act_wiz.c:1637:49: warning: trigraph ??! ignored
act_wiz.c: In function `do_balzhur':
act_wiz.c:3258: warning: implicit declaration of function `RENAME'
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:5889: warning: implicit declaration of function | top |
|
Posted by
| Gorock
(149 posts) bio
|
Date
| Reply #5 on Tue 13 Sep 2005 09:32 PM (UTC) |
Message
| `RENAME'
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 `else'
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:757: warning: int format, __time_t arg (arg 7)
interp.c:757: warning: int format, __suseconds_t 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 `save_char_obj':
save.c:191: warning: implicit declaration of function | top |
|
Posted by
| Gorock
(149 posts) bio
|
Date
| Reply #6 on Tue 13 Sep 2005 09:33 PM (UTC) |
Message
| `RENAME'
save.c: In function `load_char_obj':
save.c:951: 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:1090: 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
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 -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 handler.o hashstr.o ibuild.o ident.o interp.o magic.o makeobjs.o mapout.o misc.o mpxset.o mud_comm.o mud_prog.o player.o polymorph.o requests.o reset.o save.o shops.o skills.o special.o tables.o track.o update.o grub.o stat_obj.o ban.o services.o planes.o imm_host.o colorize.o
act_info.o(.text+0x3f02): In function `do_hset':
/home/gorock/mud/src/act_info.c:2041: undefined reference to `RENAME'
act_info.o(.text+0x7085): In function `do_password':
/home/gorock/mud/src/act_info.c:3474: undefined reference to `crypt'
act_wiz.o(.text+0x67da): In function `do_balzhur':
/home/gorock/mud/src/act_wiz.c:3258: undefined reference to `RENAME'
act_wiz.o(.text+0x9ce2): In function `do_mortalize':
/home/gorock/mud/src/act_wiz.c:4880: undefined reference to `RENAME'
act_wiz.o(.text+0xb03d): In function `do_form_password':
/home/gorock/mud/src/act_wiz.c:5441: undefined reference to `crypt'
act_wiz.o(.text+0xc713): In function `do_destroy':
/home/gorock/mud/src/act_wiz.c:5756: undefined reference to `RENAME'
act_wiz.o(.text+0xc882):/home/gorock/mud/src/act_wiz.c:5784: undefined reference to `RENAME'
act_wiz.o(.text+0x1555a): In function `do_pcrename':
/home/gorock/mud/src/act_wiz.c:9922: undefined reference to `RENAME'
act_wiz.o(.text+0x155a9):/home/gorock/mud/src/act_wiz.c:9925: undefined reference to `RENAME'
build.o(.text+0x2bdc): In function `do_mset':
/home/gorock/mud/src/build.c:1692: undefined reference to `crypt'
build.o(.text+0xd213): In function `fold_area':
/home/gorock/mud/src/build.c:5889: undefined reference to `RENAME'
build.o(.text+0xe95b): In function `do_installarea':
/home/gorock/mud/src/build.c:6613: undefined reference to `RENAME'
comm.o(.text+0x2215): In function `nanny':
/home/gorock/mud/src/comm.c:1663: undefined reference to `crypt'
comm.o(.text+0x24e3):/home/gorock/mud/src/comm.c:1750: undefined reference to `crypt'
comm.o(.text+0x25be):/home/gorock/mud/src/comm.c:1771: undefined reference to `crypt'
save.o(.text+0x270): In function `save_char_obj':
/home/gorock/mud/src/save.c:191: undefined reference to `RENAME'
save.o(.text+0x4ba):/home/gorock/mud/src/save.c:258: undefined reference to `RENAME'
collect2: ld returned 1 exit status
make[1]: *** [smaug] Error 1
make[1]: Leaving directory `/home/gorock/mud/src'
make: *** [all] Error 2
ok thats everything that happens and im lost | top |
|
Posted by
| Zeno
USA (2,871 posts) bio
|
Date
| Reply #7 on Tue 13 Sep 2005 10:02 PM (UTC) |
Message
| Look in the makefile, there should be a comment in there explaining what to do if you're using Cygwin. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | top |
|
Posted by
| Gorock
(149 posts) bio
|
Date
| Reply #8 on Tue 13 Sep 2005 11:17 PM (UTC) |
Message
| ok here is the edited makefile is this right now?
CC = gcc
#PROF = -p
NOCRYPT =
# Uncomment the two lines below if compiling on a Solaris box
#SOLARIS_FLAG = -Dsun -DSYSV
#SOLARIS_LINK = -lnsl -lsocket
#Uncomment the line below if you are getting a line like:
#interp.c:757: warning: int format, time_t arg (arg 7)
#TIME = -DTIMEFORMAT
#Uncomment the line below if you are getting implicit decleration of re_exec
#REG = -DREGEX
#Uncomment the line below if you are getting undefined re_exec errors
NEED_REG = -lgnuregex
#Uncomment the line below if you are getting undefined crypt errors
NEED_CRYPT = -lcrypt
#DBUGFLG = -DREQUESTS
#Uncomment the line below if you want a performance increase though beware
#your core files may not be as much of a benefit if you do.
#OPT_FLAG = -finline-functions -funroll-loops -fdefer-pop -fstrength-reduce
C_FLAGS = $(OPT_FLAG) -O -g3 -Wall -Wuninitialized $(PROF) $(NOCRYPT) $(DBUGFLG) -DSMAUG $(SOLARIS_FLAG) $(TIME) $(REG)
L_FLAGS = $(OPT_FLAG) $(PROF) $(SOLARIS_LINK) $(NEED_CRYPT)
#Uncomment the next three comments below if you want to use IMC
#USE_IMC = -DUSE_IMC
#IMC_OFILES = imc.o imc-mail.o imc-interp.o imc-util.o imc-config.o \
# imc-events.o imc-version.o imc-mercbase.o ice.o icec.o icec-mercbase.o
#IMC_CFILES = imc.c imc-mail.c imc-interp.c imc-util.c imc-config.c \
# imc-events.c imc-version.c imc-mercbase.c ice.c icec.c icec-mercbase.c
O_FILES = 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 \
handler.o hashstr.o ibuild.o ident.o interp.o magic.o makeobjs.o \
mapout.o misc.o mpxset.o mud_comm.o mud_prog.o player.o polymorph.o \
requests.o reset.o save.o shops.o skills.o special.o tables.o \
track.o update.o grub.o stat_obj.o ban.o services.o planes.o \
imm_host.o $(IMC_OFILES) colorize.o
C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c boards.c \
build.c clans.c comm.c comments.c const.c db.c deity.c fight.c \
handler.c hashstr.c ibuild.c ident.c interp.c magic.c makeobjs.c \
mapout.c misc.c mpxset.c mud_comm.c mud_prog.c player.c polymorph.c \
requests.c reset.c save.c shops.c skills.c special.c tables.c \
track.c update.c grub.c stat_obj.c ban.c services.c planes.c \
imm_host.c $(IMC_CFILES) colorize.c
H_FILES = mud.h bet.h imc-config.h imc-mercbase.h imc-mercdefs.h imc.h \
ice.h icec.h icec-mercbase.h
all:
make smaug
smaug: $(O_FILES)
rm -f smaug
$(CC) $(L_FLAGS) $(USE_IMC) -o smaug $(O_FILES)
chmod g+w smaug
chmod a+x smaug
chmod g+w $(O_FILES)
.c.o: mud.h
$(CC) -c $(C_FLAGS) $(USE_IMC) $<
clean:
rm -f *.o smaug *~ | top |
|
Posted by
| Zeno
USA (2,871 posts) bio
|
Date
| Reply #9 on Tue 13 Sep 2005 11:23 PM (UTC) |
Message
| I'll ask again, are you sure that's FUSS? Because that is not the FUSS Makefile. This is:
CC = gcc
#PROF = -p
#Uncomment to compile in Cygwin
#CYGWIN = -DCYGWIN
# Uncomment the two lines below if compiling on a Solaris box
#SOLARIS_FLAG = -Dsun -DSYSV
#SOLARIS_LINK = -lnsl -lsocket
#IMC2 - Comment out to disable IMC2 support
IMC = 1
W_FLAGS = -Wall -Werror -Wshadow -Wformat-security -Wpointer-arith -Wcast-align -Wredundant-decls
C_FLAGS = -g2 $(W_FLAGS) $(SOLARIS_FLAG) $(PROF)
L_FLAGS = $(PROF) $(SOLARIS_LINK)
C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c ban.c boards.c \
build.c clans.c color.c comm.c comments.c const.c db.c deity.c fight.c \
handler.c hashstr.c hotboot.c imm_host.c interp.c magic.c makeobjs.c mapout.c \
md5.c misc.c mpxset.c mud_comm.c mud_prog.c planes.c player.c polymorph.c \
reset.c save.c services.c shops.c skills.c special.c tables.c \
track.c update.c
ifdef IMC
C_FILES := imc.c $(C_FILES)
C_FLAGS := $(C_FLAGS) -DIMC -DIMCSMAUG
endif
O_FILES := $(patsubst %.c,o/%.o,$(C_FILES))
H_FILES = $(wildcard *.h)
all:
$(MAKE) -s smaug
ifdef CYGWIN
smaug: $(O_FILES)
rm -f smaug.exe
$(CC) -o smaug.exe $(O_FILES) $(L_FLAGS)
echo "Done compiling mud.";
chmod g+w smaug.exe
chmod a+x smaug.exe
chmod g+w $(O_FILES)
clean:
rm -f o/*.o smaug.exe *~
else
smaug: $(O_FILES)
rm -f smaug
$(CC) -o smaug $(O_FILES) $(L_FLAGS)
echo "Done compiling mud.";
chmod g+w smaug
chmod a+x smaug
chmod g+w $(O_FILES)
clean:
rm -f o/*.o smaug *~
endif
indent:
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(C_FILES)
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(H_FILES)
indentclean:
rm *.c~ *.h~
o/%.o: %.c
echo " Compiling $@....";
$(CC) -c $(C_FLAGS) $< -o $@
.c.o: mud.h
$(CC) -c $(C_FLAGS) $<
It seems like your problem is that you're not using FUSS. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | top |
|
Posted by
| Gorock
(149 posts) bio
|
Date
| Reply #10 on Wed 14 Sep 2005 12:29 AM (UTC) |
Message
| ok i deleted smaug then i redid it i went to smaugfuss.ord and download smaugfuss 1.6 the make file is as what you said but i still cant get it to work right here is exactly what im doing. i have cygwin putty iXplorer and after i download i put it in the cygwin home file then i open cygwin and type tar xvzf smaug16fuss.tgz then it goes through a lot of stuff and then i open startup and change the port to the one i was assigned then i log on to iXplorer and change the smaug file from me to the server then i open putty rename the smaug fuss dirt to mud then i go into /dirt/src and chmod +x startup then cp startup startup.bak then i pico into it to make sure that the port is right then i leave go back into src and type make and thats when everything goes wrong....i put everything i down in order i am going to do it yet again to see if i am missing something... i think i may need to compile it in cygwin (even though i think tar xvzf smaug16fuss.tgz would compile it) or my makefile or something is wrong, the errors i get each time are different though sometimes i get crypt errors sometimes i get comm.c errors just all kinds of random things but keep in mind i am fairly new to this i have read a little bit in a c++ book and i read the readme files in the smaugfuss file but i just cant get to get it compiled in putty right... either way thanks so far for the help im gonna go try it again now | top |
|
Posted by
| Zeno
USA (2,871 posts) bio
|
Date
| Reply #11 on Wed 14 Sep 2005 12:35 AM (UTC) |
Message
|
Quote: i think i may need to compile it in cygwin (even though i think tar xvzf smaug16fuss.tgz would compile it
Yes, you need to compile it with Cygwin. Tar extracts it, it does not compile it.
As for the errors, like I said, look in the Makefile for the Cygwin flag. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | top |
|
Posted by
| Gorock
(149 posts) bio
|
Date
| Reply #12 on Wed 14 Sep 2005 12:42 AM (UTC) |
Message
| ok so i uncomment cygwin by taking out the # then here is my make file
CC = gcc
#PROF = -p
Uncomment to compile in Cygwin
CYGWIN = -DCYGWIN
Uncomment the two lines below if compiling on a Solaris box
#SOLARIS_FLAG = -Dsun -DSYSV
#SOLARIS_LINK = -lnsl -lsocket
#IMC2 - Comment out to disable IMC2 support
IMC = 1
W_FLAGS = -Wall -Werror -Wshadow -Wformat-security -Wpointer-arith -Wcast-align -Wredundant-decls
C_FLAGS = -g2 $(W_FLAGS) $(SOLARIS_FLAG) $(PROF)
L_FLAGS = $(PROF) $(SOLARIS_LINK)
C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c ban.c boards.c \
build.c clans.c color.c comm.c comments.c const.c db.c deity.c fight.c \
handler.c hashstr.c hotboot.c imm_host.c interp.c magic.c makeobjs.c mapout.c \
md5.c misc.c mpxset.c mud_comm.c mud_prog.c planes.c player.c polymorph.c \
reset.c save.c services.c shops.c skills.c special.c tables.c \
track.c update.c
ifdef IMC
C_FILES := imc.c $(C_FILES)
C_FLAGS := $(C_FLAGS) -DIMC -DIMCSMAUG
endif
O_FILES := $(patsubst %.c,o/%.o,$(C_FILES))
H_FILES = $(wildcard *.h)
all:
$(MAKE) -s smaug
ifdef CYGWIN
smaug: $(O_FILES)
rm -f smaug.exe
$(CC) -o smaug.exe $(O_FILES) $(L_FLAGS)
echo "Done compiling mud.";
chmod g+w smaug.exe
chmod a+x smaug.exe
chmod g+w $(O_FILES)
clean:
rm -f o/*.o smaug.exe *~
else
smaug: $(O_FILES)
rm -f smaug
$(CC) -o smaug $(O_FILES) $(L_FLAGS)
echo "Done compiling mud.";
chmod g+w smaug
chmod a+x smaug
chmod g+w $(O_FILES)
clean:
rm -f o/*.o smaug *~
endif
indent:
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(C_FILES)
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(H_FILES)
indentclean:
rm *.c~ *.h~
o/%.o: %.c
echo " Compiling $@....";
$(CC) -c $(C_FLAGS) $< -o $@
.c.o: mud.h
$(CC) -c $(C_FLAGS) $<
i believe it is uncommented now, so how do i compile it because typeing make does not work in cygwin and when i type in ./startup & it says bad interpreter but after it says that i type ls and now i see something new that says
[1]+ Exit 126 ./startup
so what do i do here i am lost | top |
|
Posted by
| Zeno
USA (2,871 posts) bio
|
Date
| Reply #13 on Wed 14 Sep 2005 12:43 AM (UTC) |
Message
| Can you paste the exact lines of the error? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | top |
|
Posted by
| Samson
USA (683 posts) bio
|
Date
| Reply #14 on Wed 14 Sep 2005 01:00 AM (UTC) |
Message
| Was going to say, that first batch was not the FUSS code by any stretch, could never have been. Anyway, good you got that part worked out.
As for "make" not working, are you sure you downloaded the Cygwin version of make from the setup utility? It's in the devel section not far below where you installed gcc | top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
57,695 views.
This is page 1, subject is 2 pages long: 1 2
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.