Notice, i dropped the derefferencer '*' from the string. (it may not hurt to use mystring or some other name anyway, even though you have determined that the name wasn't the problem)
I'm not sure if it'll fix it, but it's worth a shot.
The worse that'll happen is it'll give the same or even a new error. which can be fixed by putting the derefferencer back in.
The compiler had a choice of: char* strpbrk(constchar*, constchar*)
or char* std::strpbrk(char*, constchar*)
by casting str to a char *, the compiler can then see that you want to use the second function.