i'm using dev c++ to compile this, theres probs

Posted by Trom on Sun 13 Oct 2002 05:30 PM — 9 posts, 37,030 views.

#0
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.
#1
(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.
Australia Forum Administrator #2
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.
#3
just looked for cygwin tutorial, didn't find it. If you could direct or give a url (anyone). :)
Australia Forum Administrator #4

http://www.gammon.com.au/smaug/howtocompile.htm
Australia #5
.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.
#6
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.
Australia #7
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.]
Amended on Tue 15 Oct 2002 11:51 PM by Mademoiselle
#8
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) :)