[Home] [Downloads] [Search] [Help/forum]

Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  VC++?


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

Posted by Murphy   USA  (4 posts)  [Biography] bio
Date Sun 29 Jul 2018 07:18 PM (UTC)
Please bear with me: I have no coding education or experience. I am retired and just playing around with the code on my personal computer: not open to the public, nor ever will be.

Originally, I downloaded smaug1.4a and was able to compile and run that using VC++ (I'm still working my way through Visual C++ for Dummies). That serves my purpose; but, I did run into some things I couldn't figure out. Judging from the posts here, I decided to give smaugfuss1.9 a try, as that sounded a little easier for the novice to navigate.

The problem I'm having is that I can't seem to compile it. It didn't come with a workspace like smaug1.4a did. Do I have to build one from scratch and add in the files? Or is it hidden in there somewhere I have yet to look?

Yes, I understand that I can't expect to learn as much as someone who studied this in school; but, I'm not afraid to crash my mud. I keep backups after every (apparently) successful change I make; and, I find I learn probably more from my failures than I do from my successes. Basically, all I want to do is kill some time and be able to say: "Hey! Look what I can make it do!"

Any help would be greatly appreciated.
Mama Murphy

[Go to top] top

Posted by Nick Gammon   Australia  (23,017 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sun 29 Jul 2018 09:02 PM (UTC)

Amended on Mon 30 Jul 2018 09:31 PM (UTC) by Nick Gammon

To make life easier for yourself I suggest installing Cygwin, which is "Unix under Windows".

Cygwin home page

The later versions of Smaug are designed for compiling under that. I think, once you have Cygwin installed, you open up a "bash" window (the icon should be installed on your desktop), then get the download, navigate to the "src" directory, and type "make".

It is available from a Git repository: SmaugFUSS

When installing Cygwin make sure you select various optional packages, including "git" and "compiler tools (C++ etc)".

Something like this (using bash):

git clone https://github.com/InfiniteAxis/SmaugFUSS.git

cd SmaugFUSS/src

Edit the file "Makefile" and uncomment this line near the start:


In other words, change it to:


Now type "make" and it should all compile:

  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....
... etc ...

There are some good multi-platform editors around, I use Geany which runs on Windows, Mac and Linux.

Geany can handle the different line-endings you might find (Linux rather than Windows) and has some nice features like showing symbols and function names in a panel on the left.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (23,017 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Sun 29 Jul 2018 09:04 PM (UTC)
Git is very useful for keeping track of your changes. If you follow my suggestions above, you can type "git diff" at any time (in the bash window) and it will show you what changes you have made.

I have a post about using Git here:


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] 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.


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

Go to topic:           Search the forum

[Go to top] 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.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]