The Dawn Of Time
The Official Forums for the Dawn Of Time Mud Codebase
 
Log in Register FAQ Memberlist Search The Dawn Of Time Forum Index Goto the Official Dawn Website

Problem compiling

 
Post new topic   Reply to topic    The Dawn Of Time Forum Index » 1.69s Beta6
View previous topic :: View next topic  
Author Message
Bouchart



Joined: 25 Jul 2010
Posts: 22

PostPosted: Sat Jul 06, 2013 12:26 pm    Post subject: Problem compiling Reply with quote

Trying to compile 1.69s beta 6. It's been a few years since I compiled 1.69r, so I don't remember precisely how I did it the first time.

Anyway, this is the compile error I'm getting:

Code:
g++ -c -Wall  -g -O  hreboot.cpp -o obj/hreboot.o
hreboot.cpp: In function 'void do_hotreboot(char_data*, char*)':
prototyp.h:632: error: too many arguments to function 'bool file_exists(const char*)'
hreboot.cpp:753: error: at this point in file
make: *** [hreboot.o] Error 1


[/code]

I'm trying to do this through Cygwin, under Windows XP. Any help would be appreciated.


Back to top
View user's profile Send private message
Oreant



Joined: 16 Jul 2010
Posts: 47

PostPosted: Mon Jul 15, 2013 9:30 am    Post subject: Reply with quote

If you're still working on this, try to do 'make clean' first to completely clear everything out before running your make. It seems like something for an old run is being caught in there.


Back to top
View user's profile Send private message
Bouchart



Joined: 25 Jul 2010
Posts: 22

PostPosted: Mon Jul 15, 2013 11:48 am    Post subject: Reply with quote

Tried that. Additionally, I've deleted Cygwin and all of the beta files, reinstalled everything from scratch, and still get the same error.

Does anyone have a precompiled version?


Back to top
View user's profile Send private message
Oreant



Joined: 16 Jul 2010
Posts: 47

PostPosted: Mon Jul 15, 2013 2:48 pm    Post subject: Reply with quote

I'm on Windows 7, so me building one wouldn't help you.

Does this look the same as in your files?
prototyp.h ~ line 632
Code:
#else
   bool file_exists(const char * fmt, ...) __attribute__ ((format(printf,1,2)));


hreboot.cpp - line 753
Code:
if(!file_exists("%s.exe",EXE_FILE)){


Back to top
View user's profile Send private message
Bouchart



Joined: 25 Jul 2010
Posts: 22

PostPosted: Mon Jul 15, 2013 4:09 pm    Post subject: Reply with quote

This is what I see in line 632 in prototyp.h

Code:
#else
   bool file_exists(const char * filename);
   bool file_existsf(const char * fmt, ...) __attribute__ ((format(printf,1,2)));


hreboot.cpp has what you have there.

Note that I haven't altered any of these files whatsoever.


Back to top
View user's profile Send private message
Oreant



Joined: 16 Jul 2010
Posts: 47

PostPosted: Mon Jul 15, 2013 6:43 pm    Post subject: Reply with quote

Ah, sorry I see one of the differences. Some of my files are still from sBeta5, looks like I missed at least change change from sBeta6. Just went back and pulled the newest files.

It looks like line 753 on hreboot should be using file_existsf not file_exists because it is set for two parameters. Try that change and see if yours compiles. Looks like only those of us using the cygwin while compiling would see this, when compiling on a unix box, it looks like the definition skips it.


Back to top
View user's profile Send private message
Bouchart



Joined: 25 Jul 2010
Posts: 22

PostPosted: Tue Jul 16, 2013 12:08 am    Post subject: Reply with quote

Code:
aedit.cpp: In function ‘bool aedit_file(char_data*, char*)’:
aedit.cpp:328:21: error: ‘file_exists’ was not declared in this scope
makefile:138: recipe for target `aedit.o' failed
make: *** [aedit.o] Error 1



Replacing file_exists with file_existsf gives me this error.


Back to top
View user's profile Send private message
Oreant



Joined: 16 Jul 2010
Posts: 47

PostPosted: Tue Jul 16, 2013 5:52 am    Post subject: Reply with quote

aedit.cpp is dependent on prototyp.h (through include.h), not hreboot.cpp.
Make sure you only replaced in hreboot.cpp. prototyp.h has to have both.


Back to top
View user's profile Send private message
Bouchart



Joined: 25 Jul 2010
Posts: 22

PostPosted: Tue Jul 16, 2013 6:28 am    Post subject: Reply with quote

Changing only hreboot.cpp worked. The mud booted and everything is running smoothly.

Thank you for the help.


Back to top
View user's profile Send private message
Oreant



Joined: 16 Jul 2010
Posts: 47

PostPosted: Tue Jul 16, 2013 6:31 am    Post subject: Reply with quote

Awesome!

Good luck.


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The Dawn Of Time Forum Index » 1.69s Beta6 All times are GMT + 13 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2005 phpBB Group
Theme created by Vjacheslav Trushkin