Help Compiling

Posted by Raven on Thu 28 Feb 2002 10:59 AM — 12 posts, 38,848 views.

#0
Ok I am running a rom mud on a win98 compaq 500 500 megs of ram I have installed cygwin on my desktop. Ok i used the windows find command to edit the max_level fot all the files that needed changed now i need to know how to compil it with cygwin so any help you coan give on how to do this on a windows system would be a big help thanks
Raven
Australia Forum Administrator #1

Detailed information about doing compiles, getting a compiler, making changes, and other useful topics are in the web page How to make changes, including compiling.

#2
maybe my problam is it installed to the c:\windows\desktop
I have tryed reading your text a few times and it tells what it is but not realy on how to use it to compile other then make..so i sayed ok i may be wrong and typed make it come back as Bash: Make: Command Not Found if i type cd ../area it is not found also so i need detais on where the cygwin needs to be installed and how to get make to work
I have some use of unix commands pico make :) ect maybe i am doing something wrong so if you could walk me thrue it it would be a great help
Raven
Amended on Thu 28 Feb 2002 10:18 PM by Raven
Australia Forum Administrator #3
If it says "make: command not found" then you haven't installed the compiler.

It is hard to walk through every step, the link I gave above shows all the typing needed to compile smaug (and rom would be very, very similar - the only difference really being the file name that you unzip).

However, you need to install the full Cygwin, at least including the compilers (gcc, make etc.).
#4
ok i feel so dumb it may have gotten the wrong file it did a install online so i dunno if it was a full or not but i will go and do that i had some help when i ran my mud on unix and so i had to use make a lot but i hope i can get this working :) Like i sayed in the other post i am into it because i love it and whan't more of it i love mudding :P
maybe i will learn in time i hate being a newbie but nothing like good adventurs.
Raven
Amended on Fri 01 Mar 2002 03:22 AM by Raven
Australia Forum Administrator #5
Ah yes, it is all a good adventure, and that is how you have fun. :)

Sounds like you didn't install the full thing, but then maybe you weren't sure whether or not that was necessary.
#6
Ok im back i got the full downlaod now and i tryed make *.c
it responded with nothing to be done am i missing something ? it did not give then a .o ext
Amended on Fri 01 Mar 2002 07:45 AM by Raven
Australia Forum Administrator #7
Check out the page again about "How to make changes, including compiling". You don't type "make *.c" just "make".

The make program works out what needs to be compiled. It does this by comparing the date/time of the .o files with the .c files and recompiling the ones that have changed.

If you give it a label then it looks for that label in the makefile (eg. "make all" or "make clean"). However normally you just type "make".
#8
ok here is what i did i used gcc -c -O *.* it compiled all
had some warnings but nothing badd enough to stop it from compiling the .c files However i must of missed something because i only have level 1-60 still could you give me the run down on raising the level up i use max_level and updated what i could but i need some info on that maybe i missed something bigtime
:)
Raven
Amended on Sat 02 Mar 2002 10:53 AM by Raven
Australia Forum Administrator #9
I wouldn't use gcc, I would use make.

Header files (ie. the .h ones) are included inside .c files, like this:

#include "merc.h"

Thus, you don't compile them directly, they are compiled "inside" the .c files.

#10
cool i was editing it but thanks now i understand about headers i tryed working the bugs out of make and for some reason i am haveing to minny problams with it gcc works well even if you use gcc -c -O -g3 -Wall -DSMAUG *.*
it wil give you some conflicts and warnings but it compiles it never the less humm dunno what file merc.h witch header to add or witch one it is missing :)
#11
guess i will give smaug a chance :) may be a lot easyer to use the make
:)