Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ Compiling error
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Genlath
Brazil (10 posts) Bio
|
Date
| Thu 18 Sep 2014 04:12 PM (UTC) Amended on Thu 18 Sep 2014 04:13 PM (UTC) by Genlath
|
Message
| Good afternoon. Smaug1.4a_mxp.tar downloaded the forum here, I renamed the makefile because I use cygwin. I installed cygwin as the tutorial available here in the forum and ran the commands: make clean and then make. But had this error. How can I fix it?
"$ make
make smaug
make[1]: Entering directory '/cygdrive/c/smaug1.4/src'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_comm.c
act_comm.c: In function 'translate':
act_comm.c:180:6: warning: array subscript has type 'char' [-Wchar-subscripts]
if (isalpha(*pbuf) && (!percent || (rand() % 100) > percent) )
^
act_comm.c:183:3: warning: array subscript has type 'char' [-Wchar-subscripts]
if ( isupper(*pbuf) )
^
act_comm.c: In function 'drunk_speech':
act_comm.c:255:5: warning: array subscript has type 'char' [-Wchar-subscripts]
if ( toupper(*arg) == 'T' )
^
act_comm.c:265:4: warning: array subscript has type 'char' [-Wchar-subscripts]
else if ( toupper(*arg) == 'X' )
^
act_comm.c:296:7: warning: array subscript has type 'char' [-Wchar-subscripts]
if ( isupper(*txt) )
^
act_comm.c:297:9: warning: array subscript has type 'char' [-Wchar-subscripts]
*txt1 = tolower( *txt );
^
act_comm.c:299:7: warning: array subscript has type 'char' [-Wchar-subscripts]
if ( islower(*txt) )
^
act_comm.c:300:9: warning: array subscript has type 'char' [-Wchar-subscripts]
*txt1 = toupper( *txt );
^
act_comm.c: In function 'do_repeat':
act_comm.c:1690:2: warning: array subscript has type 'char' [-Wchar-subscripts]
else if(isalpha(argument[0]) && argument[1] == '\0')
^
act_comm.c:1692:3: warning: array subscript has type 'char' [-Wchar-subscripts]
index = tolower(argument[0]) - 'a';
^
act_comm.c: In function 'do_emote':
act_comm.c:1751:5: warning: array subscript has type 'char' [-Wchar-subscripts]
if ( isalpha(plast[-1]) )
^
act_comm.c: In function 'add_profane_word':
act_comm.c:3252:7: warning: array subscript has type 'char' [-Wchar-subscripts]
_word[j]=tolower(word); j++;
^
act_comm.c:3253:7: warning: array subscript has type 'char' [-Wchar-subscripts]
_word[j]=toupper(word); j++;
^
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_info.c
act_info.c: In function 'show_visible_affects_to_char':
act_info.c:482:5: warning: array subscript has type 'char' [-Wchar-subscripts]
name[0] = toupper(name[0]);
^
act_info.c: In function 'get_help':
act_info.c:1894:5: warning: array subscript has type 'char' [-Wchar-subscripts]
if ( isdigit(argument[0]) )
^
act_info.c: In function 'do_hedit':
act_info.c:2032:9: warning: array subscript has type 'char' [-Wchar-subscripts]
if ( isdigit(argument[0]) )
^
act_info.c: In function 'do_hlist':
act_info.c:2177:2: warning: array subscript has type 'char' [-Wchar-subscripts]
if( !isdigit(arg[0]) )
^
act_info.c: In function 'do_password':
act_info.c:3457:5: warning: array subscript has type 'char' [-Wchar-subscripts]
while ( isspace(*argument) )
^
act_info.c:3476:5: warning: array subscript has type 'char' [-Wchar-subscripts]
while ( isspace(*argument) )
^
act_info.c: In function 'do_ignore':
act_info.c:4600:3: warning: array subscript has type 'char' [-Wchar-subscripts]
tolower(arg[0]), capitalize(arg));
^
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_move.c
act_move.c: In function 'grab_word':
act_move.c:168:5: warning: array subscript has type 'char' [-Wchar-subscripts]
while ( isspace(*argument) )
^
act_move.c:186:5: warning: array subscript has type 'char' [-Wchar-subscripts]
while ( isspace(*argument) )
^
act_move.c: In function 'rev_exit':
act_move.c:393:15: warning: trígrafo ??> ignorado, use -trigraphs para habilitá
lo [-Wtrigraphs]
return "<???>";
^
act_move.c: In function 'generate_exit':
act_move.c:604:25: error: lvalue required as left operand of assignment
(EXIT_DATA *) pexit = xit;
^
act_move.c: In function 'do_climb':
act_move.c:2206:10: warning: variable 'found' set but not used [-Wunused-but-se
-variable]
bool found;
^
act_move.c: In function 'do_enter':
act_move.c:2237:10: warning: variable 'found' set but not used [-Wunused-but-se
-variable]
bool found;
^
act_move.c: In function 'do_leave':
act_move.c:2276:10: warning: variable 'found' set but not used [-Wunused-but-se
-variable]
bool found;
^
Makefile:70: recipe for target 'act_move.o' failed
make[1]: *** [act_move.o] Error 1
make[1]: Leaving directory '/cygdrive/c/smaug1.4/src'
Makefile:60: recipe for target 'all' failed
make: *** [all] Error 2"
I thank the attention.
And taking another doubt, this version has the mobprogram the program command?
If you do not like to add to mobrpromgram this command? | Top |
|
Posted by
| Meerclar
USA (733 posts) Bio
|
Date
| Reply #1 on Thu 18 Sep 2014 04:43 PM (UTC) |
Message
| For starters, why not use the smaugfuss package rather than smaug? FUSS is far cleaner code and already has most of the commonly requested features added to the smaug base. Second, since you're obviously a new coder, why not go with one of the newer, cleaner code packages that was designed for the tighter compiler requirements? As for your current problem, what's the error 1 return code mean for act_move.o? |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | Top |
|
Posted by
| Fiendish
USA (2,535 posts) Bio
Global Moderator |
Date
| Reply #2 on Thu 18 Sep 2014 04:59 PM (UTC) Amended on Thu 18 Sep 2014 05:07 PM (UTC) by Fiendish
|
Message
| |
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
16,125 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top