hi I am using SDL and TTF_RenderText_Solid() to show text in my game.
I have an int variable and a float variable that I need to be able to write into my string of text in the TTF_RenderText_Solid() function. If I try to directly put an int there to write it will give me an error about not being able to convert to a const char*
I tried (char*)myIntVar and the program ran but crashed when it hit that line. I tried including <string> and doing it that way but it wants a char*
The problem could be (without seeing code) that the int/float could be out of range for the supported char it is trying to convert to. We would have to see the code to be able to say for sure one way or the other as to what is going on in the code because it may be crashing there, but the problem could be elsewhere in your code and it is only catching there.