Top Mud Sites Forum Return to TopMudSites.com
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD Coding
Click here to Register

Reply
 
Thread Tools
Old 11-30-2014, 05:55 AM   #1
Leech
Member
 
Join Date: Jul 2008
Name: John
Home MUD: The Inquisition: Legacy
Posts: 65
Leech is on a distinguished road
NakedMUD and MinGW

So I'm trying to compile NakedMUD using Windows 7 OS by using MinGW (GCC/GNU). I'm not very experienced at all with doing this, and keep running across an error message that probably has an obvious fix.

Quote:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Johnny>cd C:\Users\Johnny\Documents\Naked\nakedmudv3.8.1\sr
c


C:\Users\Johnny\Documents\Naked\nakedmudv3.8.1\src >make
Compiling gameloop.c
In file included from gameloop.c:10:0:
mud.h:11:25: fatal error: arpa/telnet.h: No such file or directory
#include <arpa/telnet.h>
^
compilation terminated.
make: *** [gameloop.o] Error 1

C:\Users\Johnny\Documents\Naked\nakedmudv3.8.1\src >
Anybody know exactly what that means? Am I missing something in my MinGW folders, or NakedMUD folders? For record, it did start to compile - then I got hit with this towards the end.
Leech is offline   Reply With Quote
Old 12-01-2014, 11:43 AM   #2
SlySven
New Member
 
SlySven's Avatar
 
Join Date: Nov 2014
Location: Deepest Wiltshire, UK
Home MUD: WoTMUD
Posts: 11
SlySven is on a distinguished road
Re: NakedMUD and MinGW

Quote:
Originally Posted by Leech View Post
So I'm trying to compile NakedMUD using Windows 7 OS by using MinGW (GCC/GNU). I'm not very experienced at all with doing this, and keep running across an error message that probably has an obvious fix.



Anybody know exactly what that means? Am I missing something in my MinGW folders, or NakedMUD folders? For record, it did start to compile - then I got hit with this towards the end.
Like what it says: the compiler cannot find the telnet.h header file in the places where it is looking for system header files i.e. not specific to the current application/project. I'm not that familiar with MinGW but I suspect you are missing either a networking or more specifically a telnet "Package" if that is the word to use for MinGW. In many systems it is often the case that to RUN an application you need certain libraries that provide specific types of functionality but to COMPILE an application that uses those libraries you need additional information i.e. header(s) files that may be bundled up in a development version of the "Package" and might be called say "Package-development" or "Package-dev". I don't have a system with MinGW to hand so I can't be more specific than this but I hope that it might give you some pointers.

P.S. The reason I say that it is a system library you are missing is because it is enclosed by '<' and '>' characters not '"' (that is a single quoted double quote BTW!) which would be the case for headers included in the project's files.

P.P.S. The only reason that it started to compile before bailing out is that this wasn't the first file that was compiled, but if you retry it is the current thing in the list of things to compile so make will stop again pretty quickly. M.B. Make will bail out at the first error unless you give it the "-k" option to "keep going" as far as possible; that will not cause everything to be done because there are still errors, but it will point out to you other "missing headers" for any other files so you can try and fix as many as possible for the next time before retrying... Of course if you are missing a "library" AS WELL as it's headers at first then, when you HAVE got the headers in place, the "linking" phase at the end will fail as it will not be able to combine all those "*.o" object files made from each source file {*.c or *.cpp} with the "libraries" {that are in the *.dll files on windows systems} to make the *.exe executable application. Typically THAT will fail with something like "ld: undefined reference to .....".
SlySven is offline   Reply With Quote
Reply


Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 12:41 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud Sites.com 2014