I can answer that second error with out even looking at the .cpp file.

Lets say you have code like this:

void bob ( const char h );

char *bob = "hello";
myfunc(bob[3]);

that would not work. bob[3] is a char, not a const char.
you would have to do this:

myfunc( const char(bob[3]) );

so to fix that error, typecast the variable to a const char.