So I have written a program in the Code Editor window and when checking it, it all makes sense. There are no errors (the red squigly line) and the warnings/advice that are there I understand.
However then I go to build the code and run it, it will not run because it finds errors. 29 of them at the time of writing. It shows them in the Output Window. The worst part is that the Code Editor itself does not display the corresponding errors. The Output Window will say at line 13 is an error, but I'll go there and the Code Editor says it's all fine and there is no error. So which one is correct?
A few examples: I have a vector class of
vector<Point>points;
and the Editor says it's fine, however the Output windows is saying "error: missing ';' before '<'" so on paper it wants me to fix it to
vector;<Point>points;
But that is clearly wrong and then the Editor also highlights it as wrong. Other errors also don't make sense. I have a function called
string toString(){}
And the Output windows will again, say "error: missing '('" however there isn't the function is complete with no missing bits.
How do I get the Code Editor and Output Window to work together and display errors that are actually there, because right now they're both at conflict with each other.