Gammon Forum
Entire forum
SMAUG
SMAUG coding
Cygwin problem
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Posted by
| Darzeth
(36 posts) bio
|
Date
| Fri 09 Jun 2006 02:26 AM (UTC) |
Message
| Im using cygwin to compile my mud and so forth. But it wont let me do make or make clean why is this? | top |
|
Posted by
| David Haley
USA (3,881 posts) bio
|
Date
| Reply #1 on Fri 09 Jun 2006 02:47 AM (UTC) |
Message
| You probably didn't install make when you installed Cygwin. Just run the installer again, and make sure you select 'make' from the list of packages. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | top |
|
Posted by
| Nick Gammon
Australia (22,982 posts) bio
Forum Administrator |
Date
| Reply #2 on Fri 09 Jun 2006 05:33 AM (UTC) |
Message
| |
Posted by
| Darzeth
(36 posts) bio
|
Date
| Reply #3 on Sat 10 Jun 2006 03:22 AM (UTC) |
Message
| ive doen all that and when i type make and i am in src it keeps saying
make no target found blah blah no makefile
make smaug nothign to be done for smaug.
i think im missing files but im not sure. | top |
|
Posted by
| Zeno
USA (2,871 posts) bio
|
Date
| Reply #4 on Sat 10 Jun 2006 03:25 AM (UTC) |
Message
| Are you using SmaugFUSS? If not, I recommend it.
If you can't, could you show us the Makefile? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | top |
|
Posted by
| Darzeth
(36 posts) bio
|
Date
| Reply #5 on Sat 10 Jun 2006 03:46 AM (UTC) |
Message
| this is wat it says exactly(i took a makefile from another smaug program)
im using smaug1.4 jsut to add
$ make
make smaug
make[1]: Entering directory `/cygdrive/c/sm/src'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_comm.c
In file included from act_comm.c:32:
mud.h:1: error: parse error before '[' token
mud.h:1: error: stray '\' in program
mud.h:1: error: stray '\' in program
In file included from act_comm.c:32:
mud.h:2:68: too many decimal points in number
mud.h:5: error: parse error before numeric constant
mud.h:5: error: stray '\' in program
mud.h:6:65: warning: character constant too long for its type
act_comm.c: In function `is_profane':
act_comm.c:3363: warning: implicit declaration of function `re_exec'
make[1]: *** [act_comm.o] Error 1
make[1]: Leaving directory `/cygdrive/c/sm/src'
make: *** [all] Error 2
and heres the make file
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
| David Haley
USA (3,881 posts) bio
|
Date
| Reply #6 on Sat 10 Jun 2006 04:00 AM (UTC) |
Message
| I don't know why you're getting those errors. As Zeno suggested, I would recommend using SMAUGfuss since it has been maintained much more regularly, and besides the fact that it is more likely to compile correctly on modern systems, it also has very many bug fixes that any new SMAUG game should have. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | top |
|
Posted by
| Darzeth
(36 posts) bio
|
Date
| Reply #7 on Sat 10 Jun 2006 03:40 PM (UTC) |
Message
| im getting a error when i use smaugfuss now
$ make
make -s smaug
Compiling o/imc.o....
Compiling o/act_comm.o....
Compiling o/act_info.o....
Compiling o/act_move.o....
Compiling o/act_obj.o....
Compiling o/act_wiz.o....
Compiling o/ban.o....
Compiling o/boards.o....
Compiling o/build.o....
Compiling o/clans.o....
Compiling o/color.o....
Compiling o/comm.o....
Compiling o/comments.o....
Compiling o/const.o....
Compiling o/db.o....
Compiling o/deity.o....
Compiling o/fight.o....
Compiling o/handler.o....
Compiling o/hashstr.o....
Compiling o/hotboot.o....
Compiling o/imm_host.o....
Compiling o/interp.o....
Compiling o/magic.o....
Compiling o/makeobjs.o....
Compiling o/mapout.o....
Compiling o/mccp.o....
Compiling o/misc.o....
Compiling o/mpxset.o....
Compiling o/mud_comm.o....
Compiling o/mud_prog.o....
Compiling o/planes.o....
Compiling o/player.o....
Compiling o/polymorph.o....
Compiling o/reset.o....
Compiling o/save.o....
Compiling o/services.o....
Compiling o/sha256.o....
Compiling o/shops.o....
Compiling o/skills.o....
Compiling o/special.o....
Compiling o/tables.o....
Compiling o/track.o....
Compiling o/update.o....
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find
-ldl
collect2: ld returned 1 exit status
make[1]: *** [smaug] Error 1
make: *** [all] Error 2
how do i fix this i tried and took the ld out but then i couldnt do anything when i was on the mud. so how do i fix this. | top |
|
Posted by
| Zeno
USA (2,871 posts) bio
|
Date
| Reply #8 on Sat 10 Jun 2006 05:52 PM (UTC) |
Message
| There are flags in the Makefile you need to toggle for that. Or try doing a search here. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | 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.
18,927 views.
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.