Hi,
for anyone else encountering this error and hunting through the web unsuccessfully for a solution here is what I've done.
I dumped strmov in favour of strcpy so that my code has changed from
end = strmov(v_query, "SELECT count(*) ");
end += mysql_escape_string(end,"FROM table",10);
to
end = strcpy(v_query, "SELECT count(*) ");
end += strlen (end);
end += mysql_escape_string(end,"FROM table",10);
This works fine and at least the programs are now compiling.