* Christophe Dupre [2007.03.27 07:15]:
> 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.
> [...]

To avoid mistakes, it would be easier if you
provided your *compiler's* output, not what you
see in the quickfix window. For example, in the
above, one has to deduce that the line wrap has
been added by vim, but it may as well have been in
the compiler's output. Another reason will be
apparent below.

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

Yes, I think this is correct.

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

Yes. 

The || characters at the beginning of the line are
added by vim on lines it doesn't recognize. You
needn't parse them because they are not part of
you compiler's output.

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

That depends what they mean. 

-- 
JR

Reply via email to