Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
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
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
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, Yandex

Members: 0
Guests: 7
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWR FUSS » Compile Error
Forum Rules | Mark all | Recent Posts

Compile Error
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Feb 27, 2008, 5:54 pm
Go to the top of the page
Go to the bottom of the page

Zastko
Fledgling
GroupMembers
Posts2
JoinedFeb 27, 2008

So I'm getting this error when compiling:

make -s swr
Compiling o/act_info.o....
cc1plus: warnings being treated as errors
act_info.c: In function âvoid do_who(CHAR_DATA*, char*)â:
act_info.c:2084: warning: format not a string literal and no format arguments
make[1]: *** [o/act_info.o] Error 1
make: *** [all] Error 2


any idea?
       
Post is unread #2 Feb 27, 2008, 6:57 pm
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

It would help to show us the line in question. :smile:
       
Post is unread #3 Feb 27, 2008, 9:27 pm
Go to the top of the page
Go to the bottom of the page

Zastko
Fledgling
GroupMembers
Posts2
JoinedFeb 27, 2008

I fixed that error actually haha now I have this awesome error :D

make -s swr
Compiling o/comm.o....
cc1plus: warnings being treated as errors
comm.c:60: warning: overflow in implicit constant conversion
comm.c:60: warning: overflow in implicit constant conversion
comm.c:61: warning: overflow in implicit constant conversion
comm.c:61: warning: overflow in implicit constant conversion
comm.c:62: warning: overflow in implicit constant conversion
comm.c:62: warning: overflow in implicit constant conversion
make[1]: *** [o/comm.o] Error 1
make: *** [all] Error 2



line 60, 61, and 62:

const char echo_off_str [] = { IAC, WILL, TELOPT_ECHO, '\0' };
const char echo_on_str [] = { IAC, WONT, TELOPT_ECHO, '\0' };
const char go_ahead_str [] = { IAC, GA, '\0' };
       
Post is unread #4 Feb 28, 2008, 10:18 am
Go to the top of the page
Go to the bottom of the page

Noplex
Apprentice
GroupMembers
Posts62
JoinedAug 30, 2005

What system are you compiling on?

That warning means you're trying to assign a value greater than the datatype (e.g. trying to assign 80,000 to a short integer).
       
Post is unread #5 Feb 28, 2008, 2:01 pm
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

Wasn't this covered just yesterday too on the MudBytes forums? :wink: In fact, by the same person! (forum thread)

Typically, if you cross-post, it is useful to say so in one of the posts, so that people know that this is a duplicate question.
       
Pages:<< prev 1 next >>