handler.cpp:1449:46: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
if ((ppos = strchr((const char *)*name, '.'))) {
list.h:242:34: error: ‘FindItem’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
return RemoveItem(FindItem(item));
return this->RemoveItem(this->FindItem(item))
grep -l janitor *.cpp
a friend of mine asked me to help compile AwakenedWorld MUD a MUD based on Shadowrun.
He can not compile. He gets an error, and is not able to fix it. I've tried, but I have the same error it.
Does anyone has tried it and has done it?
The error we get is the following:
root@ns329802:~/prueba/AwakeMUD-0.8.20B/src# make
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb weather.cpp \
| sed 's/\(weather\)\.o[ :]*/\1.o weather.d : /g' > weather.d; \
[ -s weather.d ] || rm -f weather.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb act.wizard.cpp \
| sed 's/\(act.wizard\)\.o[ :]*/\1.o act.wizard.d : /g' > act.wizard.d; \
[ -s act.wizard.d ] || rm -f act.wizard.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb act.obj.cpp \
| sed 's/\(act.obj\)\.o[ :]*/\1.o act.obj.d : /g' > act.obj.d; \
[ -s act.obj.d ] || rm -f act.obj.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb modify.cpp \
| sed 's/\(modify\)\.o[ :]*/\1.o modify.d : /g' > modify.d; \
[ -s modify.d ] || rm -f modify.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb mail.cpp \
| sed 's/\(mail\)\.o[ :]*/\1.o mail.d : /g' > mail.d; \
[ -s mail.d ] || rm -f mail.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb memory.cpp \
| sed 's/\(memory\)\.o[ :]*/\1.o memory.d : /g' > memory.d; \
[ -s memory.d ] || rm -f memory.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb act.informative.cpp \
| sed 's/\(act.informative\)\.o[ :]*/\1.o act.informative.d : /g' > act.informative.d; \
[ -s act.informative.d ] || rm -f act.informative.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb hedit.cpp \
| sed 's/\(hedit\)\.o[ :]*/\1.o hedit.d : /g' > hedit.d; \
[ -s hedit.d ] || rm -f hedit.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb graph.cpp \
| sed 's/\(graph\)\.o[ :]*/\1.o graph.d : /g' > graph.d; \
[ -s graph.d ] || rm -f graph.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb iedit.cpp \
| sed 's/\(iedit\)\.o[ :]*/\1.o iedit.d : /g' > iedit.d; \
[ -s iedit.d ] || rm -f iedit.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb comm.cpp \
| sed 's/\(comm\)\.o[ :]*/\1.o comm.d : /g' > comm.d; \
[ -s comm.d ] || rm -f comm.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb fight.cpp \
| sed 's/\(fight\)\.o[ :]*/\1.o fight.d : /g' > fight.d; \
[ -s fight.d ] || rm -f fight.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb house.cpp \
| sed 's/\(house\)\.o[ :]*/\1.o house.d : /g' > house.d; \
[ -s house.d ] || rm -f house.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb act.offensive.cpp \
| sed 's/\(act.offensive\)\.o[ :]*/\1.o act.offensive.d : /g' > act.offensive.d; \
[ -s act.offensive.d ] || rm -f act.offensive.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb newmagic.cpp \
| sed 's/\(newmagic\)\.o[ :]*/\1.o newmagic.d : /g' > newmagic.d; \
[ -s newmagic.d ] || rm -f newmagic.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb bitfield.cpp \
| sed 's/\(bitfield\)\.o[ :]*/\1.o bitfield.d : /g' > bitfield.d; \
[ -s bitfield.d ] || rm -f bitfield.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb act.social.cpp \
| sed 's/\(act.social\)\.o[ :]*/\1.o act.social.d : /g' > act.social.d; \
[ -s act.social.d ] || rm -f act.social.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb transport.cpp \
| sed 's/\(transport\)\.o[ :]*/\1.o transport.d : /g' > transport.d; \
[ -s transport.d ] || rm -f transport.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb newshop.cpp \
| sed 's/\(newshop\)\.o[ :]*/\1.o newshop.d : /g' > newshop.d; \
[ -s newshop.d ] || rm -f newshop.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb olc.cpp \
| sed 's/\(olc\)\.o[ :]*/\1.o olc.d : /g' > olc.d; \
[ -s olc.d ] || rm -f olc.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb spec_assign.cpp \
| sed 's/\(spec_assign\)\.o[ :]*/\1.o spec_assign.d : /g' > spec_assign.d; \
[ -s spec_assign.d ] || rm -f spec_assign.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb newmatrix.cpp \
| sed 's/\(newmatrix\)\.o[ :]*/\1.o newmatrix.d : /g' > newmatrix.d; \
[ -s newmatrix.d ] || rm -f newmatrix.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb medit.cpp \
| sed 's/\(medit\)\.o[ :]*/\1.o medit.d : /g' > medit.d; \
[ -s medit.d ] || rm -f medit.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb constants.cpp \
| sed 's/\(constants\)\.o[ :]*/\1.o constants.d : /g' > constants.d; \
[ -s constants.d ] || rm -f constants.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb config.cpp \
| sed 's/\(config\)\.o[ :]*/\1.o config.d : /g' > config.d; \
[ -s config.d ] || rm -f config.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb screen.cpp \
| sed 's/\(screen\)\.o[ :]*/\1.o screen.d : /g' > screen.d; \
[ -s screen.d ] || rm -f screen.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb interpreter.cpp \
| sed 's/\(interpreter\)\.o[ :]*/\1.o interpreter.d : /g' > interpreter.d; \
[ -s interpreter.d ] || rm -f interpreter.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb dblist.cpp \
| sed 's/\(dblist\)\.o[ :]*/\1.o dblist.d : /g' > dblist.d; \
[ -s dblist.d ] || rm -f dblist.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb icedit.cpp \
| sed 's/\(icedit\)\.o[ :]*/\1.o icedit.d : /g' > icedit.d; \
[ -s icedit.d ] || rm -f icedit.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb redit.cpp \
| sed 's/\(redit\)\.o[ :]*/\1.o redit.d : /g' > redit.d; \
[ -s redit.d ] || rm -f redit.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb magcreate.cpp \
| sed 's/\(magcreate\)\.o[ :]*/\1.o magcreate.d : /g' > magcreate.d; \
[ -s magcreate.d ] || rm -f magcreate.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb db.cpp \
| sed 's/\(db\)\.o[ :]*/\1.o db.d : /g' > db.d; \
[ -s db.d ] || rm -f db.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb act.comm.cpp \
| sed 's/\(act.comm\)\.o[ :]*/\1.o act.comm.d : /g' > act.comm.d; \
[ -s act.comm.d ] || rm -f act.comm.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb quest.cpp \
| sed 's/\(quest\)\.o[ :]*/\1.o quest.d : /g' > quest.d; \
[ -s quest.d ] || rm -f quest.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb newmail.cpp \
| sed 's/\(newmail\)\.o[ :]*/\1.o newmail.d : /g' > newmail.d; \
[ -s newmail.d ] || rm -f newmail.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb file.cpp \
| sed 's/\(file\)\.o[ :]*/\1.o file.d : /g' > file.d; \
[ -s file.d ] || rm -f file.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb guncreate.cpp \
| sed 's/\(guncreate\)\.o[ :]*/\1.o guncreate.d : /g' > guncreate.d; \
[ -s guncreate.d ] || rm -f guncreate.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb zedit.cpp \
| sed 's/\(zedit\)\.o[ :]*/\1.o zedit.d : /g' > zedit.d; \
[ -s zedit.d ] || rm -f zedit.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb boards.cpp \
| sed 's/\(boards\)\.o[ :]*/\1.o boards.d : /g' > boards.d; \
[ -s boards.d ] || rm -f boards.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb mobact.cpp \
| sed 's/\(mobact\)\.o[ :]*/\1.o mobact.d : /g' > mobact.d; \
[ -s mobact.d ] || rm -f mobact.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb deck_build.cpp \
| sed 's/\(deck_build\)\.o[ :]*/\1.o deck_build.d : /g' > deck_build.d; \
[ -s deck_build.d ] || rm -f deck_build.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb limits.cpp \
| sed 's/\(limits\)\.o[ :]*/\1.o limits.d : /g' > limits.d; \
[ -s limits.d ] || rm -f limits.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb act.drive.cpp \
| sed 's/\(act.drive\)\.o[ :]*/\1.o act.drive.d : /g' > act.drive.d; \
[ -s act.drive.d ] || rm -f act.drive.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb pocketsec.cpp \
| sed 's/\(pocketsec\)\.o[ :]*/\1.o pocketsec.d : /g' > pocketsec.d; \
[ -s pocketsec.d ] || rm -f pocketsec.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb pro_create.cpp \
| sed 's/\(pro_create\)\.o[ :]*/\1.o pro_create.d : /g' > pro_create.d; \
[ -s pro_create.d ] || rm -f pro_create.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb utils.cpp \
| sed 's/\(utils\)\.o[ :]*/\1.o utils.d : /g' > utils.d; \
[ -s utils.d ] || rm -f utils.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb ban.cpp \
| sed 's/\(ban\)\.o[ :]*/\1.o ban.d : /g' > ban.d; \
[ -s ban.d ] || rm -f ban.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb chargen.cpp \
| sed 's/\(chargen\)\.o[ :]*/\1.o chargen.d : /g' > chargen.d; \
[ -s chargen.d ] || rm -f chargen.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb act.movement.cpp \
| sed 's/\(act.movement\)\.o[ :]*/\1.o act.movement.d : /g' > act.movement.d; \
[ -s act.movement.d ] || rm -f act.movement.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb vedit.cpp \
| sed 's/\(vedit\)\.o[ :]*/\1.o vedit.d : /g' > vedit.d; \
[ -s vedit.d ] || rm -f vedit.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb act.other.cpp \
| sed 's/\(act.other\)\.o[ :]*/\1.o act.other.d : /g' > act.other.d; \
[ -s act.other.d ] || rm -f act.other.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb newdb.cpp \
| sed 's/\(newdb\)\.o[ :]*/\1.o newdb.d : /g' > newdb.d; \
[ -s newdb.d ] || rm -f newdb.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb handler.cpp \
| sed 's/\(handler\)\.o[ :]*/\1.o handler.d : /g' > handler.d; \
[ -s handler.d ] || rm -f handler.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb spec_procs.cpp \
| sed 's/\(spec_procs\)\.o[ :]*/\1.o spec_procs.d : /g' > spec_procs.d; \
[ -s spec_procs.d ] || rm -f spec_procs.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb vtable.cpp \
| sed 's/\(vtable\)\.o[ :]*/\1.o vtable.d : /g' > vtable.d; \
[ -s vtable.d ] || rm -f vtable.d
g++ -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb -c -o spec_assign.o spec_assign.cpp
spec_assign.cpp:44:24: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
};
^
spec_assign.cpp:44:24: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:44:24: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:44:24: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:44:24: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:44:24: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
};
^
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spec_assign.cpp:123:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
g++ -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb -c -o act.comm.o act.comm.cpp
act.comm.cpp: In function ‘void do_tell(char_data*, char*, int, int)’:
act.comm.cpp:217:68: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("$E's linkless at the moment.", FALSE, ch, 0, vict, TO_CHAR);
^
act.comm.cpp:224:58: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("$E can't hear you.", FALSE, ch, 0, vict, TO_CHAR);
^
act.comm.cpp:227:90: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("$E's writing a message right now; try again later.", FALSE, ch, 0, vict, TO_CHAR);
^
act.comm.cpp:229:63: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("$E's afk at the moment.", FALSE, ch, 0, vict, TO_CHAR);
^
act.comm.cpp:231:80: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("$E's editing right now, try again later.", FALSE, ch, 0, vict, TO_CHAR);
^
act.comm.cpp: In function ‘void do_spec_comm(char_data*, char*, int, int)’:
act.comm.cpp:289:17: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
action_sing = "whisper to";
^
act.comm.cpp:290:17: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
action_plur = "whispers to";
^
act.comm.cpp:291:19: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
action_others = "$n whispers something to $N.";
^
act.comm.cpp:293:17: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
action_sing = "ask";
^
act.comm.cpp:294:17: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
action_plur = "asks";
^
act.comm.cpp:295:19: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
action_others = "$n asks $N something.";
^
act.comm.cpp: In function ‘void do_radio(char_data*, char*, int, int)’:
act.comm.cpp:451:44: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("$p:", FALSE, ch, radio, 0, TO_CHAR);
^
act.comm.cpp:466:57: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("You turn $p off.", FALSE, ch, radio, 0, TO_CHAR);
^
act.comm.cpp:469:69: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("You set $p to scanning mode.", FALSE, ch, radio, 0, TO_CHAR);
^
act.comm.cpp:476:21: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
0, TO_CHAR);
^
act.comm.cpp:479:21: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
0, TO_CHAR);
^
act.comm.cpp:489:77: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("$p's crypt mode isn't that high.", FALSE, ch, radio, 0, TO_CHAR);
^
act.comm.cpp:496:81: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("$p's crypt mode is already disabled.", FALSE, ch, radio, 0, TO_CHAR);
^
act.comm.cpp: In function ‘void do_broadcast(char_data*, char*, int, int)’:
act.comm.cpp:563:77: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("$p must be on in order to broadcast.", FALSE, ch, radio, 0, TO_CHAR);
^
act.comm.cpp:566:75: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("$p can't broadcast while scanning.", FALSE, ch, radio, 0, TO_CHAR);
^
act.comm.cpp: In function ‘void do_phone(char_data*, char*, int, int)’:
act.comm.cpp:1141:63: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("$n's phone rings.", FALSE, tch, 0, 0, TO_ROOM);
^
act.comm.cpp:1147:61: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("Your phone rings.", FALSE, tch, 0, 0, TO_CHAR);
^
act.comm.cpp:1148:67: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("$n's phone rings.", FALSE, tch, NULL, NULL, TO_ROOM);
^
act.comm.cpp:1151:71: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("You feel your phone ring.", FALSE, tch, 0, 0, TO_CHAR);
^
act.comm.cpp:1182:73: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("Your phone stops ringing.\r\n", FALSE, tch, 0, 0, TO_CHAR);
^
act.comm.cpp:1236:90: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("^Y$v speaks in a language you don't understand.", FALSE, ch, 0, tch, TO_VICT);
^
act.comm.cpp:1244:106: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("$n speaks into $s phone in a language you don't understand.", FALSE, ch, 0, tch, TO_VICT);
^
act.comm.cpp: In function ‘void phone_check()’:
act.comm.cpp:1362:63: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("$n's phone rings.", FALSE, tch, 0, 0, TO_ROOM);
^
act.comm.cpp:1368:61: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("Your phone rings.", FALSE, tch, 0, 0, TO_CHAR);
^
act.comm.cpp:1369:61: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("$n's phone rings.", FALSE, tch, 0, 0, TO_ROOM);
^
act.comm.cpp:1372:71: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("You feel your phone ring.", FALSE, tch, 0, 0, TO_CHAR);
^
g++ -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb -c -o newdb.o newdb.cpp
newdb.cpp: In function ‘void init_char_strings(char_data*)’:
newdb.cpp:169:31: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_title(ch, "^y(Newbie)^n");
^
newdb.cpp:171:27: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, " New ");
^
newdb.cpp:175:29: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "Human");
^
newdb.cpp:178:29: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "Dwarf");
^
newdb.cpp:181:27: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "Elf");
^
newdb.cpp:184:27: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "Ork");
^
newdb.cpp:187:29: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "Troll");
^
newdb.cpp:190:31: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "Cyclops");
^
newdb.cpp:193:34: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "Koborokuru");
^
newdb.cpp:196:30: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "Fomori");
^
newdb.cpp:199:32: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "Menehune");
^
newdb.cpp:202:33: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "Hobgoblin");
^
newdb.cpp:205:29: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "Giant");
^
newdb.cpp:208:29: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "Gnome");
^
newdb.cpp:211:27: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "Oni");
^
newdb.cpp:214:32: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "Wakyambi");
^
newdb.cpp:217:28: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "Ogre");
^
newdb.cpp:220:33: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, " Minotaur");
^
newdb.cpp:223:29: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "Satyr");
^
newdb.cpp:226:33: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "Night-One");
^
newdb.cpp:229:29: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "Dryad");
^
newdb.cpp:232:30: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "Dragon");
^
newdb.cpp:235:79: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mudlog("No race found at set_whotitle in class.cc", NULL, LOG_SYSLOG, TRUE);
^
newdb.cpp:236:29: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
set_whotitle(ch, "CHKLG"); /* Will set incase the players */
^
g++ -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb -c -o handler.o handler.cpp
handler.cpp: In function ‘void equip_char(char_data*, obj_data*, int)’:
handler.cpp:1359:87: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("You are zapped by $p and instantly let go of it.", FALSE, ch, obj, 0, TO_CHAR);
^
handler.cpp:1360:86: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
act("$n is zapped by $p and instantly lets go of it.", FALSE, ch, obj, 0, TO_ROOM);
^
handler.cpp: In function ‘int get_number(char**)’:
handler.cpp:1449:46: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
if ((ppos = strchr((const char *)*name, '.'))) {
^
handler.cpp: In function ‘void extract_char(char_data*)’:
handler.cpp:1885:46: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
do_return(t_desc->character, "", 0, 0);
^
handler.cpp:1953:85: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
send_to_veh("The vehicle suddenly comes to a stop.\r\n", ch->in_veh, ch, FALSE);
^
handler.cpp:2036:78: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
send_to_veh("You slow to a halt.\r\n", ch->char_specials.rigging, NULL, 0);
^
handler.cpp:2044:27: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
do_return(ch, "", 0, 0);
^
In file included from structs.h:10:0,
from handler.cpp:16:
list.h: In instantiation of ‘bool List<T>::Remove(T) [with T = obj_data*]’:
handler.cpp:1853:26: required from here
list.h:242:34: error: ‘FindItem’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
return RemoveItem(FindItem(item));
^
list.h:242:34: note: declarations in dependent base ‘listClass<obj_data*>’ are not found by unqualified lookup
list.h:242:34: note: use ‘this->FindItem’ instead
list.h:242:35: error: ‘RemoveItem’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
return RemoveItem(FindItem(item));
^
list.h:242:35: note: declarations in dependent base ‘listClass<obj_data*>’ are not found by unqualified lookup
list.h:242:35: note: use ‘this->RemoveItem’ instead
<builtin>: recipe for target 'handler.o' failed
make: *** [handler.o] Error 1
root@ns329802:~/prueba/AwakeMUD-0.8.20B/src#
The code that we are using is this: http://www.awakenedworlds.net/src/
My version of gcc is:
root@ns329802:~/prueba/AwakeMUD-0.8.20B/src# gcc –version
gcc (Debian 4.9.2-10) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Although I do not think my friend finish the translation because the code is too large, he has managed to increase my curiosity, as I looked the files and not see anything unusual.
Sorry for my bad english!