Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Absolute basic question about compiling smaug.

Absolute basic question about compiling smaug.

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Connor   (4 posts)  Bio
Date Fri 06 Sep 2002 07:03 PM (UTC)
Message
I'm very new to mud servers. I downloaded "winsmaug1.4a.zip" which is a windows port of smaug that comes precompiled and linked with a smaug.exe file.

However I would like to add some snippets and remove some code here and there and have found info on how to do it but I can't figure out how to compile and create a new executable.

Do you have to compile each .c file? And if so how do you link together all the object files that are created into an executable? I've downloaded and installed both cygwin and djgpp compilers. I've heard references made to "make" and "make clean" but am at a loss as to what this means.

I have had very limited experience coding. I used C++ with the borland compiler in school. There we only had one .cpp file and the rest of the files containing code were .h library files. So with a program with all these files I'm at a loss at where to start.

Any help you could give would be greatly appreciated.

- Dan
Top

Posted by Nick Gammon   Australia  (23,162 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 06 Sep 2002 09:26 PM (UTC)
Message

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. About the only point it doesn't mention is 'make clean' which simply deletes all object files, so you get a 'clean compile'.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Connor   (4 posts)  Bio
Date Reply #2 on Mon 09 Sep 2002 01:05 PM (UTC)
Message
Awesome thanks.

What makes up the Makefile that is required by cygwin to perform the make? Somehow I got a precompiled version of smaug that i've been dinkin around with and it doesn't have a "makefile"?

Thanks again. That page helps out alot.
Top

Posted by Creeper386   USA  (62 posts)  Bio
Date Reply #3 on Mon 09 Sep 2002 07:50 PM (UTC)
Message
In order to compiler the code using cygwin or anything else you need the source files which can be downloaded from the smaug section right here on this site... but I'd recomend downloading the whole thing instead of throwing bits and pieces together... So get all the smaug files in one place... As it probably wouldn't matter but sometimes minute changes if in the right spot could make things not fit right.

If you are using Cygwin I'd say just download http://www.gammon.com.au/files/smaug/smaug1.4a_mxp.tgz
Right here from this site as its fairly reliable but might need minor tweaking that evenI could help with...


Hope it helps,
Creep
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.


16,372 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.