Has anyone compiled SimpleMUD?

 
Post new topic   Reply to topic    mudlab.org Forum Index -> Coding
View previous topic :: View next topic  
Author Message
HijacT



Joined: 25 Oct 2005
Posts: 9

PostPosted: Tue Aug 28, 2007 12:40 am    Post subject: Has anyone compiled SimpleMUD? Reply with quote

Picked up a book called MUD Game Programming and have been unsuccessful in compiling it. It seems kind of buggy. Some people have tried to compile it here:

http://www.gammon.com.au/forum/bbshowpost.php?action=add&bbsubject_id=6111&page=1#top

The author's web page is at ronpenton.net

It would be awesome if someone knew what was wrong
Back to top
View user's profile Send private message
Author Message
HijacT



Joined: 25 Oct 2005
Posts: 9

PostPosted: Tue Aug 28, 2007 3:54 am    Post subject: Reply with quote

Hey if anyone has seen SimpleMUD if you can compile it any help would be greatly appreciated. I wanted to use the BasicLIb and SocketLib libraries but it seems a no go.... Does anyone have a suggestion for some telnet libraries? I was hoping to use this one as it includes things like error checking etc.... Anyone have any suggestions?

[SimpleMUD]$ make libs
g++ -I../Libraries ../Libraries/SocketLib/*.cpp -c;
../Libraries/BasicLib/BasicLibRandom.h: In member function ‘double BasicLib::normal_generator<inclusive, generator>::operator()()’:
../Libraries/BasicLib/BasicLibRandom.h:132: error: there are no arguments to ‘log’ that depend on a template parameter, so a declaration of ‘log’ must be available
../Libraries/BasicLib/BasicLibRandom.h:132: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../Libraries/BasicLib/BasicLibRandom.h:140: error: there are no arguments to ‘cos’ that depend on a template parameter, so a declaration of ‘cos’ must be available
../Libraries/BasicLib/BasicLibRandom.h:140: error: there are no arguments to ‘sin’ that depend on a template parameter, so a declaration of ‘sin’ must be available
../Libraries/BasicLib/BasicLibRandom.h: In member function ‘double BasicLib::normal_generator<inclusive, generator>::operator()()’:
../Libraries/BasicLib/BasicLibRandom.h:132: error: there are no arguments to ‘log’ that depend on a template parameter, so a declaration of ‘log’ must be available
../Libraries/BasicLib/BasicLibRandom.h:132: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../Libraries/BasicLib/BasicLibRandom.h:140: error: there are no arguments to ‘cos’ that depend on a template parameter, so a declaration of ‘cos’ must be available
../Libraries/BasicLib/BasicLibRandom.h:140: error: there are no arguments to ‘sin’ that depend on a template parameter, so a declaration of ‘sin’ must be available
../Libraries/BasicLib/BasicLibRandom.h: In member function ‘double BasicLib::normal_generator<inclusive, generator>::operator()()’:
../Libraries/BasicLib/BasicLibRandom.h:132: error: there are no arguments to ‘log’ that depend on a template parameter, so a declaration of ‘log’ must be available
../Libraries/BasicLib/BasicLibRandom.h:132: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../Libraries/BasicLib/BasicLibRandom.h:140: error: there are no arguments to ‘cos’ that depend on a template parameter, so a declaration of ‘cos’ must be available
../Libraries/BasicLib/BasicLibRandom.h:140: error: there are no arguments to ‘sin’ that depend on a template parameter, so a declaration of ‘sin’ must be available
../Libraries/SocketLib/ConnectionManager.h: At global scope:
../Libraries/SocketLib/ConnectionManager.h:37: error: type ‘std::list<SocketLib::Connection<protocol>, std::allocator<SocketLib::Connection<protocol> > >’ is not derived from type ‘SocketLib::ConnectionManager<protocol, defaulthandler>’
../Libraries/SocketLib/ConnectionManager.h:37: error: expected ‘;’ before ‘clistitr’
../Libraries/SocketLib/ConnectionManager.h:110: error: ‘clistitr’ has not been declared
../Libraries/SocketLib/ConnectionManager.h: In destructor ‘SocketLib::ConnectionManager<protocol, defaulthandler>::~ConnectionManager()’:
../Libraries/SocketLib/ConnectionManager.h:161: error: ‘clistitr’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h:161: error: expected `;' before ‘itr’
../Libraries/SocketLib/ConnectionManager.h:163: error: ‘itr’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h: At global scope:
../Libraries/SocketLib/ConnectionManager.h:213: error: variable or field ‘Close’ declared void
../Libraries/SocketLib/ConnectionManager.h:213: error: ‘int SocketLib::ConnectionManager<protocol, defaulthandler>::Close’ is not a static member of ‘class SocketLib::ConnectionManager<protocol, defaulthandler>’
../Libraries/SocketLib/ConnectionManager.h:213: error: template definition of non-template ‘int SocketLib::ConnectionManager<protocol, defaulthandler>::Close’
../Libraries/SocketLib/ConnectionManager.h:213: error: ‘clistitr’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h:214: error: expected `;' before ‘{’ token
../Libraries/SocketLib/ConnectionManager.h: In member function ‘void SocketLib::ConnectionManager<protocol, defaulthandler>::Listen()’:
../Libraries/SocketLib/ConnectionManager.h:248: error: ‘clistitr’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h:248: error: expected `;' before ‘itr’
../Libraries/SocketLib/ConnectionManager.h:249: error: expected `;' before ‘c’
../Libraries/SocketLib/ConnectionManager.h:252: error: ‘itr’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h:256: error: ‘c’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h: In member function ‘void SocketLib::ConnectionManager<protocol, defaulthandler>::Send()’:
../Libraries/SocketLib/ConnectionManager.h:309: error: ‘clistitr’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h:309: error: expected `;' before ‘itr’
../Libraries/SocketLib/ConnectionManager.h:310: error: expected `;' before ‘c’
../Libraries/SocketLib/ConnectionManager.h:313: error: ‘itr’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h:317: error: ‘c’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h: In member function ‘void SocketLib::ConnectionManager<protocol, defaulthandler>::CloseConnections()’:
../Libraries/SocketLib/ConnectionManager.h:352: error: ‘clistitr’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h:352: error: expected `;' before ‘itr’
../Libraries/SocketLib/ConnectionManager.h:353: error: expected `;' before ‘c’
../Libraries/SocketLib/ConnectionManager.h:355: error: ‘itr’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h:358: error: ‘c’ was not declared in this scope
make: *** [libs] Error 1

[SimpleMUD]$ make simplemud
g++ -I../Libraries *.cpp -c;
../Libraries/BasicLib/BasicLibRandom.h: In member function ‘double BasicLib::normal_generator<inclusive, generator>::operator()()’:
../Libraries/BasicLib/BasicLibRandom.h:132: error: there are no arguments to ‘log’ that depend on a template parameter, so a declaration of ‘log’ must be available
../Libraries/BasicLib/BasicLibRandom.h:132: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../Libraries/BasicLib/BasicLibRandom.h:140: error: there are no arguments to ‘cos’ that depend on a template parameter, so a declaration of ‘cos’ must be available
../Libraries/BasicLib/BasicLibRandom.h:140: error: there are no arguments to ‘sin’ that depend on a template parameter, so a declaration of ‘sin’ must be available
../Libraries/SocketLib/ConnectionManager.h: At global scope:
../Libraries/SocketLib/ConnectionManager.h:37: error: type ‘std::list<SocketLib::Connection<protocol>, std::allocator<SocketLib::Connection<protocol> > >’ is not derived from type ‘SocketLib::ConnectionManager<protocol, defaulthandler>’
../Libraries/SocketLib/ConnectionManager.h:37: error: expected ‘;’ before ‘clistitr’
../Libraries/SocketLib/ConnectionManager.h:110: error: ‘clistitr’ has not been declared
../Libraries/SocketLib/ConnectionManager.h: In destructor ‘SocketLib::ConnectionManager<protocol, defaulthandler>::~ConnectionManager()’:
../Libraries/SocketLib/ConnectionManager.h:161: error: ‘clistitr’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h:161: error: expected `;' before ‘itr’
../Libraries/SocketLib/ConnectionManager.h:163: error: ‘itr’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h: At global scope:
../Libraries/SocketLib/ConnectionManager.h:213: error: variable or field ‘Close’ declared void
../Libraries/SocketLib/ConnectionManager.h:213: error: ‘int SocketLib::ConnectionManager<protocol, defaulthandler>::Close’ is not a static member of ‘class SocketLib::ConnectionManager<protocol, defaulthandler>’
../Libraries/SocketLib/ConnectionManager.h:213: error: template definition of non-template ‘int SocketLib::ConnectionManager<protocol, defaulthandler>::Close’
../Libraries/SocketLib/ConnectionManager.h:213: error: ‘clistitr’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h:214: error: expected `;' before ‘{’ token
../Libraries/SocketLib/ConnectionManager.h: In member function ‘void SocketLib::ConnectionManager<protocol, defaulthandler>::Listen()’:
../Libraries/SocketLib/ConnectionManager.h:248: error: ‘clistitr’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h:248: error: expected `;' before ‘itr’
../Libraries/SocketLib/ConnectionManager.h:249: error: expected `;' before ‘c’
../Libraries/SocketLib/ConnectionManager.h:252: error: ‘itr’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h:256: error: ‘c’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h: In member function ‘void SocketLib::ConnectionManager<protocol, defaulthandler>::Send()’:
../Libraries/SocketLib/ConnectionManager.h:309: error: ‘clistitr’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h:309: error: expected `;' before ‘itr’
../Libraries/SocketLib/ConnectionManager.h:310: error: expected `;' before ‘c’
../Libraries/SocketLib/ConnectionManager.h:313: error: ‘itr’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h:317: error: ‘c’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h: In member function ‘void SocketLib::ConnectionManager<protocol, defaulthandler>::CloseConnections()’:
../Libraries/SocketLib/ConnectionManager.h:352: error: ‘clistitr’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h:352: error: expected `;' before ‘itr’
../Libraries/SocketLib/ConnectionManager.h:353: error: expected `;' before ‘c’
../Libraries/SocketLib/ConnectionManager.h:355: error: ‘itr’ was not declared in this scope
../Libraries/SocketLib/ConnectionManager.h:358: error: ‘c’ was not declared in this scope
SimpleMUD/EntityDatabase.h: At global scope:
SimpleMUD/EntityDatabase.h:47: error: expected unqualified-id before ‘&’ token
SimpleMUD/EntityDatabase.h:47: error: expected ‘,’ or ‘...’ before ‘&’ token
SimpleMUD/EntityDatabase.h:47: error: ISO C++ forbids declaration of ‘parameter’ with no type
SimpleMUD/EntityDatabase.h: In constructor ‘SimpleMUD::EntityDatabase<datatype>::iterator::iterator(int)’:
SimpleMUD/EntityDatabase.h:49: error: ‘itr’ was not declared in this scope
SimpleMUD/EntityDatabase.h:50: error: ‘p_itr’ was not declared in this scope
SimpleMUD/EntityDatabase.h: In member function ‘datatype& SimpleMUD::EntityDatabase<datatype>::iterator::operator*()’:
SimpleMUD/EntityDatabase.h:59: error: ‘itr’ was not declared in this scope
SimpleMUD/EntityDatabase.h: In member function ‘datatype* SimpleMUD::EntityDatabase<datatype>::iterator::operator->()’:
SimpleMUD/EntityDatabase.h:69: error: ‘itr’ was not declared in this scope
SimpleMUD/EntityDatabase.h: In static member function ‘static SimpleMUD::entityid SimpleMUD::EntityDatabase<datatype>::FindOpenID()’:
SimpleMUD/EntityDatabase.h:159: error: expected `;' before ‘itr’
SimpleMUD/EntityDatabase.h:163: error: ‘itr’ was not declared in this scope
SimpleMUD/EntityDatabase.h:167: error: ‘itr’ was not declared in this scope
SimpleMUD/EntityDatabase.h: At global scope:
SimpleMUD/EntityDatabase.h:186: error: type ‘std::vector<datatype, std::allocator<_CharT> >’ is not derived from type ‘SimpleMUD::EntityDatabaseVector<datatype>’
SimpleMUD/EntityDatabase.h:186: error: expected ‘;’ before ‘iterator’
SimpleMUD/EntityDatabase.h:188: error: ‘iterator’ does not name a type
SimpleMUD/EntityDatabase.h:189: error: ‘iterator’ does not name a type
SimpleMUD/EntityDatabase.h: In static member function ‘static SimpleMUD::EntityDatabase<datatype>::iterator SimpleMUD::EntityDatabase<datatype>::begin() [with datatype = SimpleMUD::Player]’:
SimpleMUD/PlayerDatabase.h:49: instantiated from here
SimpleMUD/EntityDatabase.h:80: error: no matching function for call to ‘SimpleMUD::EntityDatabase<SimpleMUD::Player>::iterator::iterator(std::_Rb_tree_iterator<std::pair<const unsigned int, SimpleMUD::Player> >)’
SimpleMUD/EntityDatabase.h:47: note: candidates are: SimpleMUD::EntityDatabase<datatype>::iterator::iterator(int) [with datatype = SimpleMUD::Player]
SimpleMUD/EntityDatabase.h:46: note: SimpleMUD::EntityDatabase<datatype>::iterator::iterator() [with datatype = SimpleMUD::Player]
SimpleMUD/EntityDatabase.h:39: note: SimpleMUD::EntityDatabase<SimpleMUD::Player>::iterator::iterator(const SimpleMUD::EntityDatabase<SimpleMUD::Player>::iterator&)
SimpleMUD/EntityDatabase.h: In static member function ‘static SimpleMUD::EntityDatabase<datatype>::iterator SimpleMUD::EntityDatabase<datatype>::end() [with datatype = SimpleMUD::Player]’:
SimpleMUD/PlayerDatabase.h:49: instantiated from here
SimpleMUD/EntityDatabase.h:89: error: no matching function for call to ‘SimpleMUD::EntityDatabase<SimpleMUD::Player>::iterator::iterator(std::_Rb_tree_iterator<std::pair<const unsigned int, SimpleMUD::Player> >)’
SimpleMUD/EntityDatabase.h:47: note: candidates are: SimpleMUD::EntityDatabase<datatype>::iterator::iterator(int) [with datatype = SimpleMUD::Player]
SimpleMUD/EntityDatabase.h:46: note: SimpleMUD::EntityDatabase<datatype>::iterator::iterator() [with datatype = SimpleMUD::Player]
SimpleMUD/EntityDatabase.h:39: note: SimpleMUD::EntityDatabase<SimpleMUD::Player>::iterator::iterator(const SimpleMUD::EntityDatabase<SimpleMUD::Player>::iterator&)
SimpleMUD/EntityDatabase.h: In member function ‘datatype& SimpleMUD::EntityDatabase<datatype>::iterator::operator*() [with datatype = SimpleMUD::Player]’:
../Libraries/BasicLib/BasicLibFunctions.h:45: instantiated from ‘iterator BasicLib::double_find_if(iterator, iterator, firstpass, secondpass, qualify) [with iterator = SimpleMUD::EntityDatabase<SimpleMUD::Player>::iterator, firstpass = SimpleMUD::matchentityfull, secondpass = SimpleMUD::matchentity, qualify = SimpleMUD::playeractive]’
SimpleMUD/PlayerDatabase.h:50: instantiated from here
SimpleMUD/EntityDatabase.h:59: error: dependent-name ‘std::map<unsigned int,datatype,std::less<unsigned int>,std::allocator<std::pair<const unsigned int, datatype> > >::iterator’ is parsed as a non-type, but instantiation yields a type
SimpleMUD/EntityDatabase.h:59: note: say ‘typename std::map<unsigned int,datatype,std::less<unsigned int>,std::allocator<std::pair<const unsigned int, datatype> > >::iterator’ if a type is meant
make: *** [simplemud] Error 1

[SimpleMUD]$ make link
g++ -I../Libraries *.o -lpthread
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [link] Error 1

[SimpleMUD]$ g++ --version
g++ (GCC) 4.1.2 20070626 (Red Hat 4.1.2-13)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    mudlab.org Forum Index -> Coding All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group
BBTech Template by © 2003-04 MDesign