![](templates/subSilver/images/CCSLogo.jpg) |
![CCS C Software and Maintenance Offers](templates/subSilver/images/forumAd6.jpg) |
View previous topic :: View next topic |
Author |
Message |
Flavio58
Joined: 08 Sep 2003 Posts: 21
|
Strange errors list .... |
Posted: Tue Jun 03, 2003 2:39 am |
|
|
One week ago I bought the PCH compiler....
I use it in a MPLAB ICD 2 environment with PICDEEM 2 PLUS.....
When I try to use the compiler using MPLAB make option, ccs show me a long list
of errors as these :
*** Error 48 "SkyMilCtrl.c" Line 464(5,6): Expecting a (
*** Error 43 "SkyMilCtrl.c" Line 464(7,8): Expecting a declaration
*** Error 43 "SkyMilCtrl.c" Line 464(8,9): Expecting a declaration
*** Error 48 "SkyMilCtrl.c" Line 464(9,10): Expecting a (
*** Error 48 "SkyMilCtrl.c" Line 464(12,18): Expecting a (
*** Error 48 "SkyMilCtrl.c" Line 464(19,20): Expecting a (
*** Error 43 "SkyMilCtrl.c" Line 464(22,23): Expecting a declaration
*** Error 12 "SkyMilCtrl.c" Line 465(10,11): Undefined identifier x
*** Error 43 "SkyMilCtrl.c" Line 465(12,13): Expecting a declaration
*** Error 43 "SkyMilCtrl.c" Line 465(13,14): Expecting a declaration
*** Error 48 "SkyMilCtrl.c" Line 466(8,14): Expecting a (
*** Error 43 "SkyMilCtrl.c" Line 466(10,11): Expecting a declaration
*** Error 43 "SkyMilCtrl.c" Line 466(11,12): Expecting a declaration
*** Error 43 "SkyMilCtrl.c" Line 467(1,2): Expecting a declaration
...
...
*** Error 43 "SkyMilCtrl.c" Line 631(11,12): Expecting a declaration
*** Error 43 "SkyMilCtrl.c" Line 631(12,13): Expecting a declaration
*** Error 43 "SkyMilCtrl.c" Line 633(1,2): Expecting a declaration
1592 Errors, 1 Warnings.
Skipping link step. Not all sources built successfully.
BUILD FAILED
CCS start the error list from a line (464 as example) and
continue until the end of file ....
As example the line 464 is :
void resetLog(void)
{
int16 x;
--->464> for(x=0;x!=numLog;x++)
--->465> free(log[x]);
--->466> numLog = 0;
--->467>
--->}
If I change the positions of some functions (resetLog is shifted two function after ....) THE ERROR LIST DON'T CHANGE !!
If I try to compile this file using the command line method the ccs show me an error starting line 15 .... This error using the graphic environment is not showed !!
I tried on other computer and the problem is the same...
On a DELL Pentium IV 2.5GH with 512 RAM ....
The error list start at line 464 .....
___________________________
This message was ported from CCS's old forum
Original Post ID: 144514994 |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
Re: Strange errors list .... |
Posted: Tue Jun 03, 2003 12:48 pm |
|
|
:= One week ago I bought the PCH compiler....
:= I use it in a MPLAB ICD 2 environment with PICDEEM 2 PLUS.....
---------------------------------------------------------
It's very common for a C compiler to dump out 1 million
errors if you are missing a brace, parenthesis, or semi-colon.
I suggest that you disable the display of "all errors"
and tell the compiler to show only 1 error.
Then, when it gives the line number with the error, start
looking at the code above that line. Look for the missing
brace, parenthesis or semi-colon.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515010 |
|
![](templates/subSilver/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|