Hello,

I've been using Vim for a while now, and getting quite good at it, but
what I miss right now is to be able to compile and jump to the error.
I'm therefore trying to define the error format for my compiler. I'm
using CCS compiler; it's used to program PIC micro controller.

Here is what I get when I do copen.

|| ccsc main.c +FH +P +DC +LO +EA +STDOUT I+="..\Includes" 
|| >>> Warning 201 "C:\Project\Test\OnlineMS\Firmware\Source\rs232.c"
Line 48(1,1): Assignment inside relational expression
|| *** Error 12 "C:\Project\Test\OnlineMS\Firmware\Source\main.c" Line
97(3,4): Undefined identifier   j
||       1 Errors,  1 Warnings.
|| main.hex
||         1 file(s) copied.
|| A duplicate file name exists, or the file
|| cannot be found.
|| A duplicate file name exists, or the file
|| cannot be found.
|| C:\Project\Test\OnlineMS\Firmware\Source\main.err
|| A duplicate file name exists, or the file
|| cannot be found.
|| A duplicate file name exists, or the file
|| cannot be found.
|| A duplicate file name exists, or the file
|| cannot be found.

I guess what I need to define is the format for only these 2 lines
(correct me if I'm wrong) , and can ignore the rest.
|| >>> Warning 201 "C:\Project\Test\OnlineMS\Firmware\Source\rs232.c"
Line 48(1,1): Assignment inside relational expression
|| *** Error 12 "C:\Project\Test\OnlineMS\Firmware\Source\main.c" Line
97(3,4): Undefined identifier   j

Here is what I think I should define.
\|\|\ \>\>\>\ %t\ %n\ %f\ Line\ %lXXX%m
\|\|\ \*\*\*\ %t\ %n\ %f\ Line\ %lXXX%m
Can you spot anything wrong here?

How do I deal with the (1,1), and the (3,4)? 

Thanks for your help,

Christophe

Reply via email to