Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Development
Nov 28, 2018, 10:10 am
By Keirath
First Immortal
Oct 12, 2018, 12:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018, 5:31 pm
By joeyfogas
question on overland code
May 31, 2018, 10:03 am
By joeyfogas
KaVir's Protocol Snip
May 15, 2018, 7:57 pm
By joeyfogas
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Bing, DotBot

Members: 0
Guests: 19
Stats
Files
Topics
Posts
Members
Newest Member
481
3,740
19,397
638
IgnacioBol
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 >>