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 02-22-2004, 01:15 AM   #1
reyth
New Member
 
Join Date: Jun 2002
Posts: 9
reyth is on a distinguished road
I am working on the AIME codebase, in C++, and have a problem where seasonal descriptions for rooms doesn't appear to be working correctly. Now, assuming I am setting the flags correctly, which is a big assumption, I went on to look at the code and made a change I hoped would help. I then did a make clean, followed by a ./configure and a new make install. I noticed however that it did not prompt me for new file folders as it did on my first install. Does the new make use the altered code or does that code come from somwhere else, or does anyone have a clue? I guess what I am asking is, custumarily, if you make a change to source code is that the way to go about getting the code into the executeable/mudbin/whatever you call in linux/C++ applications?
reyth is offline   Reply With Quote
Old 02-22-2004, 06:02 AM   #2
welcor
Member
 
Join Date: Apr 2002
Location: Aarhus, Denmark, Europe
Posts: 59
welcor is on a distinguished road
Send a message via ICQ to welcor
This seem a bit overkill. Just 'make' by itself should do what you need done. The above is important if you change the makefile. 'make clean' removes compiled object files, and './configure' rebuilds a new makefile if the system configuration has been changed. 'make install' apparantly creates some new subdirectories as well as compiling the source files.

No, because they were already there.

Yes, the new make use the altered source files to generate code.
As I wrote above, it's a bit of overkill. THe 'make' program is smart enough to chekc file access dates, so it can decide which object files need to be updated before linking. Unless you've changed your system setup (kernel, compiler, libraries), there's no reason to either make clean<*> or run configure;
Just cd to your src/ dir and type 'make' when you've made a change.

<*> sometimes running 'make clean;make' can fix some linking issues, but generally it's not needed unless you're making a backup of your code and don't want all those bulky .o files in your tar file.
welcor is offline   Reply With Quote
Reply


Thread Tools


changing source code - Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing MUD name Zeno Bugs and Suggestions 0 07-14-2006 10:19 PM
Dreamweb is changing name to Broken World! mikosevaar Advertising for Players 0 08-13-2004 02:34 PM
2k/NT4 source leak visko Tavern of the Blue Hand 2 02-13-2004 07:03 AM
Season-Changing Rooms? Faye Advanced MUD Concepts 12 09-26-2002 01:57 PM
Gun Code Shadow MUD Coding 1 07-10-2002 05:17 PM

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 10:10 AM.


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