Go to Post ...why do programmers have a nesting habit? - Andrew Schreiber [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-02-2006, 20:25
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
psychotic compiler

I figured it out and was right. Apparently the compiler is too stupid to notice if you leave off a semicolon in the last line of a file. This causes major problems when it tries to figure out why it can't compile things.

There's nothing like a compiler that has a list of known problems 24 pages long! I'm not kiding. Look in \mcc18\MPLAB-C18-README.txt
__________________
1139 Alumni

Last edited by Rickertsen2 : 13-02-2006 at 20:37.
  #2   Spotlight this post!  
Unread 13-02-2006, 20:33
Manoel's Avatar
Manoel Manoel is offline
Registered User
FRC #0383 (Brazilian Machine)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Porto Alegre, RS, Brazil
Posts: 608
Manoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond repute
Send a message via ICQ to Manoel Send a message via MSN to Manoel
Re: psychotic compiler

Quote:
Originally Posted by Rickertsen2
My compiler has gone psycho for real this time. It insists that there is an error on the first non comment, non compiler directive line of a certian file. If i comment out the entire file or remove it form the project, it picks another file and does the same thing. After several iterations of removing files, it started complaining about LIBRARY FILES!!!! I had this problem once before and the only way i was able to rectify it was to go back to a previous version. Unfortunately i havn't kept any backups this year, so that is not an option. Does anybody know a fix.

I suspect that there is a syntax error somewhere in my code, that the compiler does not know how to properly identify.
Have you tried good old Ctrl + F10?
__________________
Manoel Flores da Cunha
Mentor
Brazilian Machine
Team # 383
  #3   Spotlight this post!  
Unread 13-02-2006, 20:47
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: psychotic compiler

Quote:
Originally Posted by Rickertsen2
I figured it out and was right. Apparently the compiler is too stupid to notice if you leave off a semicolon in the last line of a file. This causes major problems when it tries to figure out why it can't compile things.

There's nothing like a compiler that has a list of known problems 24 pages long! I'm not kiding. Look in \mcc18\MPLAB-C18-README.txt
my friend paul tells me this is a "known standard bug of the c language".

"Java 1.0 also suffered this bug"

"The parser falls off the end of the line into another file and then completes it at the next ";" it finds that isnt in a compiler directive or comment"
__________________
1139 Alumni

Last edited by Rickertsen2 : 13-02-2006 at 20:54.
  #4   Spotlight this post!  
Unread 13-02-2006, 21:32
X-Istence X-Istence is offline
Melt the RC controller!
AKA: Bert JW Regeer
no team
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Montville
Posts: 151
X-Istence will become famous soon enoughX-Istence will become famous soon enough
Send a message via AIM to X-Istence Send a message via MSN to X-Istence
Re: psychotic compiler

Your fault for leaving off a semicolon in the first place .

One could say this is an inherent flaw with C I guess. Lines are ended with a semicolon so that stuff like this is possible:

Code:
int i =
192984392429
298349384394328;
If your error falls at the end of a file, you are supposed to look for a semicolon one has missed.
__________________
My Blog!
Closed Thread


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
I need a easy & free c compiler aksimhal Programming 7 31-01-2006 22:05
C18 Compiler v.3.00 Problems prograid Programming 6 10-01-2006 22:10
C18 v2.4 compiler location b_mallerd Programming 1 14-12-2005 16:43
IMPORTANT regarding the new C Compiler dlavery General Forum 12 14-01-2005 05:05


All times are GMT -5. The time now is 01:36.

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