Hello,

I was testing under windows with MinGW.


Here is a C source file:

#include <stdio.h>

int main(void)
{

    eturn 0;
}

It includes a syntax error. I use the following commands to compile it:

:compiler gcc
:set makeprg=gcc
:mak %

I got the following in my qflist:

|| ex.c: In function 'main':
ex.c|6 error| 'eturn' undeclared (first use in this function)
ex.c|6 error| expected ';' before numeric constant


Then I did this:

C:\path\to\src> gcc ex.c >out.tmp 2>&1

:compiler gcc
:cgetexpr readfile('out.tmp')

Then I got the following in my qflist:

|| ex.c: In function 'main':
ex.c|6| error: 'eturn' undeclared (first use in this function)
ex.c|6| error: (Each undeclared identifier is reported only once
ex.c|6| error: for each function it appears in.)
ex.c|6| error: expected ';' before numeric constant

It seems that cgetexpr didn't use the errorformat.

Then I tried G95 fortran compiler, there are also different results, which indicated that cgetexpr doesn't use the 'errorformat'. Have I done something wrong or this is a problem existing in vim?

Thanks.


Regards,
Hong Xu
2011/5/10

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to