|
Absolute basic question about compiling smaug.
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Connor
(4 posts) bio
|
| Date |
Fri 06 Sep 2002 07:03 PM (UTC) [ quote
] |
| 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 (18,770 posts) bio
Forum Administrator |
| Date |
Reply #1 on Fri 06 Sep 2002 09:26 PM (UTC) [ quote
] |
| 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) [ quote
] |
| 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) [ quote
] |
| 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.
1,722 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )