Can someone tell me what this error means?

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Apr 2008
Posts: 64
Reputation: chunalt787 is an unknown quantity at this point 
Solved Threads: 1
chunalt787 chunalt787 is offline Offline
Junior Poster in Training

Can someone tell me what this error means?

 
0
  #1
Oct 14th, 2008
I am trying to compile my program and I am getting alot of these errors:
  1. Parser.cpp:9: error: stray ‘\200’ in program
  2. Parser.cpp:9: error: stray ‘\231’ in program
  3. 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
  1. const char Parser::opTable[] = {
  2. ’\0’, ’$’, ’(’, ’)’, ’^’, ’*’, ’/’, ’+’, ’-’, ’~’ };
I cant even figure out what that error even means.

Thanks in advance for any help.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 305
Reputation: stilllearning has a spectacular aura about stilllearning has a spectacular aura about 
Solved Threads: 43
stilllearning stilllearning is offline Offline
Posting Whiz

Re: Can someone tell me what this error means?

 
0
  #2
Oct 14th, 2008
You're using the wrong quotes

  1. const char opTable[] = {
  2. '\0', '$', '(', ')', '^', '*', '/', '+', '-', '~' };
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 64
Reputation: chunalt787 is an unknown quantity at this point 
Solved Threads: 1
chunalt787 chunalt787 is offline Offline
Junior Poster in Training

Re: Can someone tell me what this error means?

 
0
  #3
Oct 14th, 2008
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 ')'
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 64
Reputation: chunalt787 is an unknown quantity at this point 
Solved Threads: 1
chunalt787 chunalt787 is offline Offline
Junior Poster in Training

Re: Can someone tell me what this error means?

 
0
  #4
Oct 14th, 2008
Originally Posted by stilllearning View Post
You're using the wrong quotes

  1. const char opTable[] = {
  2. '\0', '$', '(', ')', '^', '*', '/', '+', '-', '~' };
What do you mean wrong quotes? Like the single quotes should be double? Wouldn't that meant that the objects were strings?
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 305
Reputation: stilllearning has a spectacular aura about stilllearning has a spectacular aura about 
Solved Threads: 43
stilllearning stilllearning is offline Offline
Posting Whiz

Re: Can someone tell me what this error means?

 
0
  #5
Oct 14th, 2008
You have back-quotes ie ’\0’ which is different from using single quotes '/0'
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 64
Reputation: chunalt787 is an unknown quantity at this point 
Solved Threads: 1
chunalt787 chunalt787 is offline Offline
Junior Poster in Training

Re: Can someone tell me what this error means?

 
0
  #6
Oct 14th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 64
Reputation: chunalt787 is an unknown quantity at this point 
Solved Threads: 1
chunalt787 chunalt787 is offline Offline
Junior Poster in Training

Re: Can someone tell me what this error means?

 
0
  #7
Oct 14th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 305
Reputation: stilllearning has a spectacular aura about stilllearning has a spectacular aura about 
Solved Threads: 43
stilllearning stilllearning is offline Offline
Posting Whiz

Re: Can someone tell me what this error means?

 
1
  #8
Oct 14th, 2008
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 ?
Last edited by stilllearning; Oct 14th, 2008 at 10:27 pm.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC