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 CCS Technical Support

Compiler generates one error at a time?

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



Joined: 09 May 2005
Posts: 20
Location: Canada

View user's profile Send private message

Compiler generates one error at a time?
PostPosted: Mon May 09, 2005 8:36 am     Reply with quote

I've been working with the CCS complier for a bit over a year now, but something has always bugged me - it only generates one error message at a time (I'm using the CCS compiler's IDE, F9 function key to initiate the compile).

For small projects this is OK, but for, say, a major revamp of a 6000 line project, it means a lot of waiting around as each error is picked up, one .... after .... the .... other.

This is the only compiler I've ever used that metes out errors this slowly Confused It won't even pick up two syntax errors in the same line of code!

I've searched the manual and list for ideas, I've tried the on-line help and various places within PICC where settings can be changed, but I've found no reference to this.

Am I doing something wrong?
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Mon May 09, 2005 8:53 am     Reply with quote

You can manage these adding extra options commands following the
compiler invoking command.

The option +EA enable to show all warnings and all error mesages.
you can find all this extra commands to "personalize the compiler behaviour"
in Invoking the Command line Compiler page 14 (Adobe pdf version)

Humberto
Guest








PostPosted: Mon May 09, 2005 10:30 am     Reply with quote

Thanks Humberto,

Is this option available through the IDE? Surely there must be somewhere where command line arguments can be specified. I'm assuming the IDE launches the compiler as a command line...

I just tried putting the +EA in the ccsc.ini file (where the include directory path is already specified). This file (colocated with ccsc.exe) is supposed to be read when the compiler is run, but it seems to ignore the option when the compiler is run from the IDE. I tried putting +EA on the same line with the include file specification and on the second line of the file.

When I actually run CCSC from the command line, it also seems to ignore the options in ccsc.ini (contrary to how I read the manual). Complains about finding the device file, even though ccsc.ini contains the proper include file path.

I like using the IDE - just wish I could get it to show more than one error at a time.

Cheers,
Erik
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Mon May 09, 2005 11:22 am     Reply with quote

Go to OPTIONS folder:

Code:


_Select Formats

       _Compiler

          _Error File    Select ->  Multi-Lines

                          Mark    � Show all Errors
                                  � Show Warnings


Best wishes,

Humberto
icefield



Joined: 09 May 2005
Posts: 20
Location: Canada

View user's profile Send private message

PostPosted: Mon May 09, 2005 12:29 pm     Reply with quote

What Magic!

Thank you very much, Humberto.

Now I'm just thinking of all the time I've wasted watching the line compilation counter Crying or Very sad

I must say, it seems a curious place to put this sort of option (File Format???). I did not find it on my own, despite trying.

It also seems a curious choice for a default for the errors - I would think most people would want to see more than one error at a time, if possible.

By the way, what is the "Original" option? Also seems to give only one error message per compilation.
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Mon May 09, 2005 1:23 pm     Reply with quote

Quote:

Now I'm just thinking of all the time I've wasted watching the line compilation counter

It�s preferable late than never !!! Wink

Also, don�t forget to select in:

Editor Properties
Code:

      - Display
          Mark > - Show Line Number 


Quote:

It also seems a curious choice for a default for the errors - I would think most people
would want to see more than one error at a time, if possible.

Yes, I�m agree with you, but may be frustrating for most starting people to see
all the errors
after compile, and you know that the error checking are
concatenated and when you correct one, most time you are correcting more than one.

Keep well,

Humberto
Ttelmah
Guest







PostPosted: Mon May 09, 2005 2:02 pm     Reply with quote

The 'pity' is that there isn't the option of a set number of error lines. This is common with many compilers, where you can set them to show (say) the first ten errors, and avoids the problem of displaying a huge error list, but at the same time allows a bit more data than the single line display.

Best Wishes
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