Go to Post For those who don't have snow in the forecast - i.e., not New England - just send me your shipping address and I'll FedEx some snow to you right away. We have extra. :p - DonRotolo [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Spotlight this post!  
Unread 12-01-2007, 09:31
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,862
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: C18 v2.4 -- Syntax error where there is no syntax error

This is a pretty common problem particular to include files.

The important clue is that the error gets flagged on the first line of some include file when the compiler finally figures out that you haven't closed a bracket somewhere previous.
The key is to remember that all your #include's are just inserting all that text into a single massive file that's then passed to the compiler, so the error is really getting flagged in the middle of that big file, not in the single include file spit out in the error message.

So thinking about it as one huge file rather than a series of includes...
What it really means is there is an error in another included file or other text before the include file that shows the error just like in regular code when it's often the line or block of code before.
If the error occurs in your very first include then the cause is often accidental characters typed at the very top of your source file or an unclosed comment field.

P.S.
Nice search skills by the way to rediscover this thread among thousands.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 12-01-2007 at 09:49.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C18 v2.4 compiler location b_mallerd Programming 1 14-12-2005 16:43
Syntax Error: externs, structs, and macros Astronouth7303 Programming 3 16-02-2005 15:39
syntax error using enum{} gnormhurst Programming 8 07-02-2005 14:25
Routine declaration syntax error (Or: Where's wlado?) Astronouth7303 Programming 15 24-03-2004 05:51


All times are GMT -5. The time now is 14:34.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi