Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   psychotic compiler (http://www.chiefdelphi.com/forums/showthread.php?t=43951)

Rickertsen2 13-02-2006 20:25

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! :ahh: I'm not kiding. Look in \mcc18\MPLAB-C18-README.txt

Manoel 13-02-2006 20:33

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?

Rickertsen2 13-02-2006 20:47

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! :ahh: 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". :confused: :confused:

"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"

X-Istence 13-02-2006 21:32

Re: psychotic compiler
 
Your fault for leaving off a semicolon in the first place :P.

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.


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

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