My project code was working perfectly fine before, but now it's randomly giving me this error for some unknown reason.
ISO C++ forbids converting a string constant to 'char*'
And it's giving me this error for every single instance of, for example: tft.drawCentreString or tft.drawRightString
So for pretty much any tft.function that is not exactly tft.print.
The TFT library I'm using is Bodmer/TFT_HX8357. The board I'm using is an Arduino Mega 2560 Rev3.
I've checked to make sure all of my libraries are installed and functioning properly (they are as far as I can tell). There is no prior error message to the string to char error messages either (it's the first one on the list and every single one after that). This error is preventing my user menu from being displayed on the TFT screen.
I ran my code through VS Code PlatformIO to check for coding errors and it is showing that there are none.
I'm not trying to convert a string to a character, so I'm completely baffled. What are some common causes of this problem? Any help would be appreciated. If more info is needed, please let me know. Unfortunately, I cannot upload the entire code to here because I'm under an NDA for it.