View Single Post
  #5   Spotlight this post!  
Unread 20-02-2006, 10:04
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: syntax error in code that i have never even seen before: HELP!

Quote:
Originally Posted by pbhead
so.... are you saying that there is a problem somewhere else in my code(very likely) and the compiler desided to put the error message here?
Yes.
What probably happened is you introduced a syntax error, but you know how the compiler will sometimes highlight the line after an error? When it finally figures out you mistyped something? If your syntax error occurs right before an #include statement, it'll instead highlight the first line in that inoffensive include file (or one of the many nested system include files).

I've often seen it when someone accidentally hits the keyboard and unknowingly inserts a random character at the very top of one of their source files.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle