Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ ROM
➜ Compiling the server
➜ i'm using dev c++ to compile this, theres probs
i'm using dev c++ to compile this, theres probs
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Trom
(82 posts) Bio
|
Date
| Sun 13 Oct 2002 05:30 PM (UTC) |
Message
| when i compile, it gives me this:
" Building Makefile: "C:\WINDOWS\Desktop\the rom server software\Makefile.win"
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\main.cpp
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\update.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\act_enter.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\act_info.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\act_move.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\act_obj.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\act_wiz.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\alias.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\ban.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\comm.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\const.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\db.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\db2.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\effects.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\fight.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\flags.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\handler.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\healer.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\interp.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\lookup.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\magic.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\magic2.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\music.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\note.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\recycle.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\save.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\scan.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\skills.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\special.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\tables.c
Finding dependencies for file: C:\WINDOWS\Desktop\the rom server software\src\act_comm.c
Executing make...
make.exe -f "C:\WINDOWS\Desktop\the rom server software\Makefile.win" all
ar r themud.a main.o src/update.o src/act_enter.o src/act_info.o src/act_move.o src/act_obj.o src/act_wiz.o src/alias.o src/ban.o src/comm.o src/const.o src/db.o src/db2.o src/effects.o src/fight.o src/flags.o src/handler.o src/healer.o src/interp.o src/lookup.o src/magic.o src/magic2.o src/music.o src/note.o src/recycle.o src/save.o src/scan.o src/skills.o src/special.o src/tables.o src/act_comm.o
ranlib themud.a
Execution terminated
Compilation successful "
It gives no errors, but, it makes a file called 'themud.a' and its sort of wierd because i was expecting an .exe, if you any of you can help me understand whats going on, it would be appreciated. | Top |
|
Posted by
| Trom
(82 posts) Bio
|
Date
| Reply #1 on Sun 13 Oct 2002 06:19 PM (UTC) |
Message
| (some info)
I use dev c++ because i don't understand how to use cygwin (uses win98se o/s). No one seems to know were any tutorials are for it, so i plan to stick with dev c++. I do not have visual c++. Used Delphi, am now using visual basic, just started tinkering with dev C++, and am doing javascript (which to me is similar to c language). Other than that i just wanted to get a mud running off this windows comp no matter how slow it is, just so i know how a mud works. I've used smaug but didn't like the wierd coloring and some commands. I'm stuck on rom because i've been playing one for a few years now and its the only one that seems to have any replay value (thejunglemud.dhs.org), other than that i'm just trying to learn, but no one seems to be willing to help, i hope this place is different. | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #2 on Sun 13 Oct 2002 11:34 PM (UTC) |
Message
| I am not familiar with "dev c++" but the general technique is to add most, if not all, of the .c files into the project and compile and link them together. Sounds like you are doing that, but a .a file sounds like a library. Perhaps you have the wrong target type selected?
Cygwin isn't too hard to use, I have a tutorial on this site. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Trom
(82 posts) Bio
|
Date
| Reply #3 on Mon 14 Oct 2002 02:41 AM (UTC) |
Message
| just looked for cygwin tutorial, didn't find it. If you could direct or give a url (anyone). :) | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #4 on Mon 14 Oct 2002 03:35 AM (UTC) |
Message
| |
Posted by
| Mademoiselle
Australia (35 posts) Bio
|
Date
| Reply #5 on Mon 14 Oct 2002 08:30 AM (UTC) |
Message
| .a is a library file. Check your dev-cpp options; it should not be doing this by default. There is an argument you can send to gcc to tell it to create a library, so I'm guessing this has somehow been inadvertently turned on.
I use dev-cpp/mingw myself and find it to be a better alternative for compiling than cygwin. | Top |
|
Posted by
| Trom
(82 posts) Bio
|
Date
| Reply #6 on Tue 15 Oct 2002 03:00 PM (UTC) |
Message
| When it tries to compile the .exe it gives me no errors, but when it actually does the line to make it, it says bad name or no file found. I tried going to dos and using "gcc" because the compile line was probably in the wrong directory to call gcc. That didn't work. I plan to go to the src directory of the mud and try to compile it from there. Other than that i don't no what to do, dev c++ is pretty cool, hope to still use it. | Top |
|
Posted by
| Mademoiselle
Australia (35 posts) Bio
|
Date
| Reply #7 on Tue 15 Oct 2002 11:46 PM (UTC) Amended on Tue 15 Oct 2002 11:51 PM (UTC) by Mademoiselle
|
Message
| BTW, I don't think dev-cpp lets you use a custom make file (yet). If the rom source comes with a makefile, as it should, use the make utility to compile it, from the command line. Don't compile from within dev-cpp, unless you're sure that the generated makefile is as good or better than the "real" makefile. In this case, you are not.
Try that:
First add the path to your bin directory to your system's path (probably dev-cpp\bin, wherever you installed dev-cpp), so it knows where to find executables. If you're using win9x, open up autoexec.bat, find the path line, and add the path in there. You'll then need to run 'autoexec' from the command line to make it use the new path value. If you're using nt/2k/xp, you'll need to log in as an administrator, then right-click My Computer, go to properties, hit the environment variables button, click add, type in the path to .../bin, and click all the ok buttons. I don't know how to do this in winME; if you use this you'll have to play around yourself, but I suspect it'll either be easy, using autoexec.bat, or stupidly hard (it's not in the system properties tab like 2k).
Once you've done this, you can open up dos/cmd, cd to your rom directory and find the directory containing a file called "Makefile" (with no extension). Change to this directory. Once you're in there, type "make" and press enter, and with a bit of luck it'll work.
Don't use 'gcc.exe' directly; make will automatically find the files it needs to compile and do so (by following the instructions in Makefile), and after you've compiled once it will only recompile the files that are changed. Much quicker than invoking gcc with 20 or more source files specified on the command line.
[Edited for grammar.] | Top |
|
Posted by
| Trom
(82 posts) Bio
|
Date
| Reply #8 on Wed 16 Oct 2002 07:15 PM (UTC) |
Message
| i changed the autobat path using something called 'msconfig' (start -> run -> msconfig.exe)
I'm using win98 second edition
The only makefile i had for the rom source was created by dev c++.
I'm gonna download one with a makefile with no extension and will try to 'make' it with that.
Thanks for the advice (hoping it will all work out) :) | 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.
27,189 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top