Pages:<< prev 1 next >>
Fledgling

GroupMembers
Posts13
JoinedFeb 26, 2006
I'm running into some errors when I compile on an Amazon EC2 instance. Any ideas?
Thanks in advance.
make -s swr Compiling o/imc.o.... Compiling o/11.o.... Compiling o/act_comm.o.... Compiling o/act_info.o.... Compiling o/act_move.o.... cc1plus: warnings being treated as errors act_move.c: In function ‘short int encumbrance(CHAR_DATA*, short int)’: act_move.c:449: warning: converting to ‘short int’ from ‘double’ act_move.c:453: warning: converting to ‘short int’ from ‘double’ act_move.c:457: warning: converting to ‘short int’ from ‘double’ make[1]: *** [o/act_move.o] Error 1 make: *** [all] Error 2 [ec2-user@ip-10-196-55-97 src]$
Thanks in advance.
Magician

GroupMembers
Posts189
JoinedSep 5, 2010
Don't know if this is right or not, but simply change the short int's to double?
Black Hand

GroupAdministrators
Posts3,708
JoinedJan 1, 2002
Or, if there's a -WConversion flag in the C_FLAGS, remove it.
Fledgling

GroupMembers
Posts13
JoinedFeb 26, 2006
I feel kinda ridiculous but after looking at the comment in the downloads I took the -Werror flag out of the makefile and that resolved it. Thanks for you replies!
Magician

GroupMembers
Posts169
JoinedNov 29, 2005
Daiimus said:The -Werror flag causes the compiler to treat warnings as errors. Removing it hid the problem, not fixed it.
I feel kinda ridiculous but after looking at the comment in the downloads I took the -Werror flag out of the makefile and that resolved it. Thanks for you replies!
Black Hand

GroupAdministrators
Posts3,708
JoinedJan 1, 2002
Well it didn't even hide it, just allowed the spam to pollute the screen. Dropping the -WConversion flag would have removed the spam. Most of the warnings it's trying to give aren't critical to fix.
Magician

GroupMembers
Posts169
JoinedNov 29, 2005
Samson said:After Kayle showed me those flags, I cleaned up my code so it'd compile with it on, so I'm a bit anal about keeping them on and clean. I figure it's crying about something so I may as well fix it.
Well it didn't even hide it, just allowed the spam to pollute the screen. Dropping the -WConversion flag would have removed the spam. Most of the warnings it's trying to give aren't critical to fix.
Off the Edge of the Map

GroupAdministrators
Posts1,199
JoinedMar 21, 2006
I don't use -WConversion. >.>
Sorcerer

GroupMembers
Posts723
JoinedMar 5, 2005
I don't use it either. Sometimes I disable features in a function and then I get those unused/uninitialized warnings for variables that were used in that section.
I know what the warnings mean, rather not have them stop me from compiling.
I know what the warnings mean, rather not have them stop me from compiling.
Pages:<< prev 1 next >>