CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Strange errors list ....

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Flavio58



Joined: 08 Sep 2003
Posts: 21

View user's profile Send private message

Strange errors list ....
PostPosted: Tue Jun 03, 2003 2:39 am     Reply with quote

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
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: Strange errors list ....
PostPosted: Tue Jun 03, 2003 12:48 pm     Reply with quote

:= 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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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