The forums have a search function that allow you to find previous posts that may help.
If you search for "GDB upgrade" then the relevant post is in the first 10 results.
Tried version 12 and 11 from
here and I still get the same error.
If anyone knows the answer to this please reply, I have set the notification on the thread.
But I myself have completely given up. I spent hours Wednesday getting this to work unsuccessfully, and then yesterday another 4-5 hours trying to install Visual Studio on a virtual machine.
The thing is I hate Visual Studio with all my heart due to dozens of gigabytes of unnecessary bloatware it installs without asking you and the fact that it has an online installer. Tried a few and finally managed to install the 2012 version with an offline installer.
I like CodeBlocks because it is very lightweight and I can install it on my real machine. I would never install Visual Studio and all its junk on my real machine.
But evidently a simple lightweight IDE you can code simple C++ programs in on Windows is too much to ask nowadays.