Need Help Compiling

Posted by Jaguar385 on Wed 20 Jun 2001 01:19 PM — 9 posts, 31,673 views.

#0
Hi... I read the FAQ on how to compile the SMAUG server using Cygwin, and I did all it asked... but when I type make in the /src dir, it replies the following:

Makefile:41: *** missing separator. Stop.

Now, I'm new to compiling, really anything, so I'm not sure how I could fix this thing, so that's why I'm writing on this bboard :)

Thanks, help or no help,
~Jaguar (Matt)
Australia Forum Administrator #1
Sounds like you did something to the makefile (called "Makefile") at line 41. I would edit that and look closely at it. :)
#2
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 \ (<--- This is line 41.*)
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

*I can't see anything wrong with 41... of course I don't even know how it's supposed to look, so the whole friggin' file may be wrong for all I know :)

Heh, thanks...
~Jaguar (matt)
Australia Forum Administrator #3
Better email me the make file and I'll try it myself.
#4
Okay, everything is working fine. ^.^
Thanks a lot, Nick :)

-Jaguar (matt)
Australia Forum Administrator #5
In case anyone is wondering, the problem with the makefile was that somehow some lines had got wrapped (possibly by sending in an email).

Fixing up the line wrapping fixed the problem.
#6
Heh. Sorry to bother you all again, but I downloaded the "already made" thing for windows (the one you don't have to compile) and I was wondering, how would I go about editing the files such as fight.c and magic.c and the others?

Hehe, thankies all.

~Jaguar(matt)
Australia #7
First thing you might wanna do is read through a few C Programming books. If you didn't know how to compile I'm guessing you've never touched a line of C in your life.

I've been using C/C++ casually for a few years now and I'm not even going to bother trying to get an edit to work, there's just too much happening there at once for my limited grasp of the language to deal with.
Australia Forum Administrator #8
You can edit them with any text editor - Notepad would do. I use UltraEdit a fair bit, but there are dozens of text editors around.

However editing them won't do much on its own, then you need to compile them, to make a new executable file.