I am trying to compile my program and I am getting alot of these errors:

Parser.cpp:9: error: stray ‘\200’ in program
Parser.cpp:9: error: stray ‘\231’ in program
Parser.cpp:9: error: stray ‘\342’ in program

That sequence of three lines just keeps repeating and repeating.

These are lines 8 and 9 from the file Parser.cpp

const char Parser::opTable[] = {
   ’\0’, ’$’, ’(’, ’)’, ’^’, ’*’, ’/’, ’+’, ’-’, ’~’ };

I cant even figure out what that error even means.

Thanks in advance for any help.

8 Years
Discussion Span
Last Post by stilllearning

I also just noticed that it throws that same error for any line that uses one of the elements of the opTable array that I added such as ')'


You're using the wrong quotes

const char opTable[] = {
   '\0', '$', '(', ')', '^', '*', '/', '+', '-', '~' };

What do you mean wrong quotes? Like the single quotes should be double? Wouldn't that meant that the objects were strings?


ooo ok that must be from a copy and paste problem. I changed that but it didn't fix anything. Do you know what that error generally means maybe I can spot something wrong.


Alright well my bad I had some other wrong quotes that I fixed and it took care of the problem. Thank you stilllearning for the help.

If anyone knows the general description of that problem for the future tho please feel free to let me know.


As far as I know these errors arise from the illegal quotes you were using. If you fix all of those, then it should compile correctly. Can you paste your Parse.cpp code if its not too long ?

Votes + Comments
Thanks for your patience and help
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.