TinyMUD

Posted by Neves on Wed 11 Apr 2007 01:12 PM — 12 posts, 42,139 views.

USA #0
I can't get it to run with cygwin, I'm getting a lot of compiling errors, any idea why?

-Mark
USA #1
No idea. Is TinyMUD a Smaug mod?
USA #2
No, a simple C++ MUD made by Nick Gammon as a starter.
USA #3
TinyMUD should compile essentially out of the box. What errors are you getting, and what version of g++ do you have?
USA #4
The Cygwin setup file says I have gcc-g++;C++ compiler version 3.4.4-3

I only installed the standard Cygwin files plus gcc for C, C++ and make, maybe there is another file?


And here is what I get when I type make:

$ make
g++ -g3 -Wall -w -pedantic -c tinymudserver.cpp
tinymudserver.cpp:135: error: expected `)' before '&' token
tinymudserver.cpp:135: error: expected `)' before '&' token
tinymudserver.cpp:135: error: expected `)' before '&' token
tinymudserver.cpp:135: error: expected `,' or `;' before '&' token
tinymudserver.cpp:291: error: extra `;'
tinymudserver.cpp:415: error: extra semicolon
tinymudserver.cpp: In member function `tPlayer& tPlayer::operator<<(const T&)':
tinymudserver.cpp:411: error: expected primary-expression before ';' token
tinymudserver.cpp: At global scope:
tinymudserver.cpp:517: error: extra semicolon
tinymudserver.cpp:529: error: extra semicolon
tinymudserver.cpp: In function `tRoom* FindRoom(const int&)':
tinymudserver.cpp:757: error: no matching function for call to `std::runtime_err
or::runtime_error()'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/stdexcept:109: note: candidates ar
e: std::runtime_error::runtime_error(const std::runtime_error&)
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/stdexcept:115: note: std::runtime
_error::runtime_error(const std::string&)
tinymudserver.cpp: In member function `tPlayer* tPlayer::GetPlayer(std::istream&
, const std::string&, const bool&)':
tinymudserver.cpp:839: error: no matching function for call to `std::runtime_err
or::runtime_error()'
tinymudserver.cpp:781: note: candidates are: std::runtime_error::runtime_error(c
onst std::runtime_error&)
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/stdexcept:115: note: std::runtime
_error::runtime_error(const std::string&)
tinymudserver.cpp: In function `void bailout(int)':
tinymudserver.cpp:861: error: `bStopNow' undeclared (first use this function)
tinymudserver.cpp:861: error: (Each undeclared identifier is reported only once
for each function it appears in.)
tinymudserver.cpp: In function `void DoShutdown(tPlayer*, std::istream&)':
tinymudserver.cpp:1787: error: `bStopNow' undeclared (first use this function)
tinymudserver.cpp: In function `void DoGoTo(tPlayer*, std::istream&)':
tinymudserver.cpp:1835: error: expected primary-expression before ',' token
tinymudserver.cpp: In function `void MainLoop()':
tinymudserver.cpp:2637: error: `bStopNow' undeclared (first use this function)
make: *** [tinymudserver.o] Error 1
Australia Forum Administrator #5
See this post:

http://www.gammon.com.au/forum/bbshowpost.php?id=4496&page=4

In the middle of that page it describes the changes I had to make to get it to compile under the latest gcc compiler.
Australia Forum Administrator #6
I have applied the changes and made a new file for downloading:

http://www.gammon.com.au/files/muds/tinymudserver_v2_3.tgz

Its md5sum is: 2c0fb4f7ecff50708bbd713376c2ae6f
USA #7
When trying to download the new file it says I don't have access.
Australia Forum Administrator #8
Don't know quite what happened then. I have fixed up the permissions, try again please.
USA #9
We're good now, thnx
USA #10
Getting a new error now when I try running TinyMUD, looks like this:

$ ./tinymudserver
Tiny MUD server version 2.2.0
Cannot initialise comms ...
bind: Address already in use

Suggestions?
USA #11
Turn off whatever program is already using that port, or change the port TinyMUD uses.