Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Bing

Members: 0
Guests: 15
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » Compiling Errors
Forum Rules | Mark all | Recent Posts

Compiling Errors
< Newer Topic :: Older Topic > Kindly assist a wobbly MUD vet?

Pages:<< prev 1 next >>
Post is unread #1 Jul 16, 2011, 7:06 pm
Go to the top of the page
Go to the bottom of the page

Draconar
Fledgling
GroupMembers
Posts6
JoinedJul 16, 2011

Hello gentlemen,

I'm running the base FUSS w/ Nick Gammon's pre-compiled executable. Starts up fine, but I can't for the life of me figure out what I'm doing wrong in trying to compile. I want to make some initial changes, like get rid of some old races/classes, introduce new ones, change the who list appearance, etc, and I'm sure I'll need to compile. However, upon trying an initial compile with no changes I've received the message below.

$ make
make -s smaug
Compiling o/imc.o....
cc1plus: warnings being treated as errors
imc.c:106: error: deprecated conversion from string constant to 'char*'
imc.c: In function 'char* color_itom<const char*, CHAR_DATA*>':
imc.c:393: error: deprecated conversion from string constant to 'char*'
imc.c:414: ...
imc.c:525: error: ...
imc.c:527: error: ...
etc. until...
make[1]: *** [o/imc.o] Error 1
make: *** [all] Error 2

So my question is, what am I doing wrong? Bear in mind, I'm using Cygwin and so far have only used make.
       
Post is unread #2 Jul 16, 2011, 9:07 pm   Last edited Jul 16, 2011, 9:08 pm by Zeno
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

What's the pre-compiled executable? What's it for?

Also see http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=11168
       
Post is unread #3 Jul 17, 2011, 6:33 am
Go to the top of the page
Go to the bottom of the page

Draconar
Fledgling
GroupMembers
Posts6
JoinedJul 16, 2011

The precompile is simply four files, including an executable, which can be moved to the area directory of smaugFUSS 1.9 to avoid compiling altogether. I tried it after failing with Cygwin to compile at all. Of course, ultimately I will need to compile to make any real changes so it's nice for someone more focused on building and general admin like myself, but not a good long term solution.

I actually have a seperate copy of SMAUGFUSS I've been trying to get simply running. I've put years of work into it but my coder's got a case of the RL happening. When I compile that, I only get the following error:

Compiling o/act_info.o....
act_info.c: In function 'void do_time(CHAR_DATA*, char*)':
act_info.c2162: error: 'struct tm' has no member named 'tm_zone'
make[1]: *** [o/act_info.o] Error 1
make: *** [all] Error 2

... followed, of course, by no executable. I think I'd give an arm and a leg to get that up and running, but I simply lack the programming expertise.
       
Post is unread #4 Jul 17, 2011, 9:18 am   Last edited Jul 17, 2011, 9:25 am by Aurin
Go to the top of the page
Go to the bottom of the page

Aurin
Magician
GroupMembers
Posts189
JoinedSep 5, 2010

Okay, for the first one:
imc.c:106: error: deprecated conversion from string constant to 'char*'
imc.c: In function 'char* color_itom<const char*, CHAR_DATA*>': 

This is an incomplete function name and doesn't appear to be written correctly, it should look something like this (as per the SMAUGFUSS 1.9 files):
const char *color_itom( const char *txt, CHAR_DATA * ch )


For this second part:
act_info.c: In function 'void do_time(CHAR_DATA*, char*)':
act_info.c2162: error: 'struct tm' has no member named 'tm_zone' 


Try using "ptime" as the struct vs "tm", so that it would look like this:
ptime->tm_zone


Oh, and since you seem to be using Windows (via Cygwin), I highly recommend Notepad++ if you don't already have it. Makes searching through files much, much easier. :)
       
Post is unread #5 Jul 17, 2011, 3:40 pm
Go to the top of the page
Go to the bottom of the page

Draconar
Fledgling
GroupMembers
Posts6
JoinedJul 16, 2011

Thanks Aurin
       
Pages:<< prev 1 next >>