AFKMud 2.03 and Ubuntu 8.04
< Newer Topic
:: Older Topic >
Pages:<< prev 1 next >>
#1 May 1, 2008 1:28 pm
Apprentice
GroupMembers
Posts69
JoinedApr 23, 2002
I'm not sure if anyone has tried this yet, but it dies on overland.cpp, I think I have the right library installed for gd2
overland.cpp: In function ‘void do_setmark(char_data*, char*)’:
overland.cpp:1127: warning: deprecated conversion from string constant to ‘char*’
overland.cpp:1132: warning: deprecated conversion from string constant to ‘char*’
overland.cpp: In function ‘void do_setexit(char_data*, char*)’:
overland.cpp:1523: warning: deprecated conversion from string constant to ‘char*’
overland.cpp: At global scope:
overland.cpp:1549: error: ‘gdImagePtr’ was not declared in this scope
overland.cpp:1549: error: expected primary-expression before ‘int’
overland.cpp:1549: error: expected primary-expression before ‘short’
overland.cpp:1549: error: expected primary-expression before ‘short’
overland.cpp:1549: error: expected primary-expression before ‘short’
overland.cpp:1549: error: initializer expression list treated as compound expression
overland.cpp:1550: error: expected ‘,’ or ‘;’ before ‘{’ token
overland.cpp:1556: error: ‘gdImagePtr’ was not declared in this scope
overland.cpp:1556: error: expected primary-expression before ‘int’
overland.cpp:1556: error: initializer expression list treated as compound expression
overland.cpp:1557: error: expected ‘,’ or ‘;’ before ‘{’ token
make[1]: *** [o/overland.o] Error 1
overland.cpp: In function ‘void do_setmark(char_data*, char*)’:
overland.cpp:1127: warning: deprecated conversion from string constant to ‘char*’
overland.cpp:1132: warning: deprecated conversion from string constant to ‘char*’
overland.cpp: In function ‘void do_setexit(char_data*, char*)’:
overland.cpp:1523: warning: deprecated conversion from string constant to ‘char*’
overland.cpp: At global scope:
overland.cpp:1549: error: ‘gdImagePtr’ was not declared in this scope
overland.cpp:1549: error: expected primary-expression before ‘int’
overland.cpp:1549: error: expected primary-expression before ‘short’
overland.cpp:1549: error: expected primary-expression before ‘short’
overland.cpp:1549: error: expected primary-expression before ‘short’
overland.cpp:1549: error: initializer expression list treated as compound expression
overland.cpp:1550: error: expected ‘,’ or ‘;’ before ‘{’ token
overland.cpp:1556: error: ‘gdImagePtr’ was not declared in this scope
overland.cpp:1556: error: expected primary-expression before ‘int’
overland.cpp:1556: error: initializer expression list treated as compound expression
overland.cpp:1557: error: expected ‘,’ or ‘;’ before ‘{’ token
make[1]: *** [o/overland.o] Error 1
#2 May 1, 2008 3:45 pm
Black Hand
GroupAdministrators
Posts3,685
JoinedJan 1, 2002
For the gd part, did you install libgd-devel ? Without that it's not going to be able to find the needed headers.
The string constant stuff is more irritation from the whole mess we've been through once before because gcc decided to get more strict about const usage. It's what finally triggered me working on getting the AFKMud trunk code converted over to std::string pretty much everywhere so this sort of thing is no longer at issue.
The string constant stuff is more irritation from the whole mess we've been through once before because gcc decided to get more strict about const usage. It's what finally triggered me working on getting the AFKMud trunk code converted over to std::string pretty much everywhere so this sort of thing is no longer at issue.
#3 May 1, 2008 3:59 pm
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007
Odd that it wouldn't report a missing header file, though. (Unless, of course, we're not seeing the full list of errors.)
#4 May 1, 2008 5:16 pm
Apprentice
GroupMembers
Posts69
JoinedApr 23, 2002
Yeah, I was missing the dev package, its been too long since I've done this stuff Thanks
#5 May 2, 2008 10:45 pm
Magician
GroupMembers
Posts122
JoinedMay 1, 2002
Hmmm
Okay - I got a similar error - also on 8.04
I do have the libgd devel packages installed - as far as I can see when I look in adept.
Puzzling
Okay - I got a similar error - also on 8.04
Building AFKMud.... make -s afkmud Compiling o/imc.o.... cc1plus: warnings being treated as errors imc.cpp:92: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:92: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:92: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:92: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:92: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:92: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’ imc.cpp: In function ‘void imclog(const char*, ...)’: imc.cpp:132: warning: deprecated conversion from string constant to ‘char*’ imc.cpp: In function ‘std::string imc_act_string(std::string, char_data*, char_data*)’: imc.cpp:6732: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:6732: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:6732: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:6733: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:6733: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:6733: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:6734: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:6734: warning: deprecated conversion from string constant to ‘char*’ imc.cpp:6734: warning: deprecated conversion from string constant to ‘char*’ make[1]: *** [o/imc.o] Error 1 make: *** [all] Error 2 andrew@speedy:~/afkmud/src$
I do have the libgd devel packages installed - as far as I can see when I look in adept.
Puzzling
#6 May 2, 2008 10:48 pm
Black Hand
GroupAdministrators
Posts3,685
JoinedJan 1, 2002
The const char* stuff has nothing to do with the gd libs. I guess I need to get off my but and get the trunk code done so people can test that at least. I've got a pretty massive commit waiting if I can ever get motivated to finish the alterations :/
#7 May 4, 2008 11:57 am
Apprentice
GroupMembers
Posts69
JoinedApr 23, 2002
No problem, at least someone is still developing this stuff You can turn off the -Werror to compile in case you wanted to play with it.
Pages:<< prev 1 next >>