Either stop trying to pass a string constant where a function takes a char*, or change the function so that it takes a const char* instead.
Ignacio Vazquez-Abrams
- 17.7k
- 1
- 28
- 32