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
➜ SMAUG
➜ Compiling the server
➜ Compiling under Visual C++
Compiling under Visual C++
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Mouse
(2 posts) Bio
|
Date
| Mon 02 Apr 2001 10:18 PM (UTC) |
Message
| I can't find the exact location on www.cygwin.com to download the cygnus compiler. I have Visual C++ and have tried to compile it but I can't get it to work. What I did was open all the source and header files from the c:\dist\src. Then I clicked on compile in Visual C++ but it only compiled the 1 file open. How do you make it compile all the files?
Also can you give a URL to the cygnus compiler installation file?
Thanks :) | Top |
|
Posted by
| Translucent Hate
USA (48 posts) Bio
|
Date
| Reply #1 on Mon 02 Apr 2001 11:52 PM (UTC) |
Message
| i used to use Borland C and it didn't do much
for compiling help, it works nice for looking
at the files and making changes though.
here's cygwin...
http://sources.redhat.com/cygwin/ | Top |
|
Posted by
| Translucent Hate
USA (48 posts) Bio
|
Date
| Reply #2 on Mon 02 Apr 2001 11:57 PM (UTC) |
Message
| laugh, for some reason when i went to www.cygwin.com
it didn't used to look like what it does now...
so its exactly the same as http://sources.redhat.com/cygwin/
what you need to do is click on that icon in the middle
of the screen in between these words.
Latest release (DLL version 1.1.8):
Install now! or read about additional download options.
Basically click on the C to download it...
but once its downloaded, you need to run the setup.exe
for the real cygwin files, yer only downloading the
setup file from that site. | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #3 on Tue 03 Apr 2001 02:13 AM (UTC) |
Message
| The source for SMAUG that is available from this site (see Downloads button above) comes with a Visual C++ project file. Just open that and rebuild it.
What was wrong with your approach is you need to add most (possibly not all) of the .c files to a project and then rebuild the project. Just compiling one file only gives you the contents of that file. Rebuilding the project compiles all files in the project and links them together to give an executable (.exe) file. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Mouse
(2 posts) Bio
|
Date
| Reply #4 on Tue 03 Apr 2001 03:31 PM (UTC) |
Message
| Yay!
Thanks for the project file and the link to cygnus.
I'm relatively new to C++ so I don't know what a makefile is. Many Smaug sites say you have to edit something in the makefile, but is that only for other compilers? Also what does a makefile do?
Even though you included the helpful project file I don't know what you meant by remaking the project, can you list the steps?
Thanks a billion!
:) | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #5 on Tue 03 Apr 2001 06:06 PM (UTC) |
Message
| A "Makefile" is a file of that name which is used by the "make" utility, generally under Unix (Linux).
Instructions with their source will tell you to type "make". The program "make" looks for a (default) file name of "Makefile" which it then reads in to tell it what to do.
The command format is a bit cryptic, but in essence it has rules for rebuilding the source.
For example, in there you will, see something like this:
C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c boards.c \
build.c clans.c comm.c comments.c const.c db.c deity.c fight.c \
handler.c hashstr.c ibuild.c ident.c interp.c magic.c makeobjs.c \
mapout.c misc.c mpxset.c mud_comm.c mud_prog.c player.c polymorph.c \
requests.c reset.c save.c shops.c skills.c special.c tables.c \
track.c update.c grub.c stat_obj.c ban.c services.c planes.c \
imm_host.c $(IMC_CFILES) colorize.c
This puts the relevant list of files to be compiled into the variable C_FILES.
They then get compiled and linked. Make is smart enough not to recompile files whose object files are already up-to-date.
As for remaking the project under Visual C++, go to the Build menu, and select "Build smaug.exe" or just press F7.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Cyric
(1 post) Bio
|
Date
| Reply #6 on Thu 23 Aug 2001 04:48 PM (UTC) |
Message
| Hi there, I have recently compiled using visual c++ 6 and everything matched up with the html preview of what the end result would look like. I then went into dos and tried to run the smaug.exe file. I recieved the following error : BUGS: cannot open commands.dat
Could anyone let me know what I might have done wrong??
Thanks In Advance,
Jason | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #7 on Fri 24 Aug 2001 01:07 AM (UTC) |
Message
| Probably you are executing from the wrong directory. You need to change to the area directory and run it from there. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
22,041 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top