Hi,
I contacted the maintainer of the gcc.vim compiler without any response.
I'm currently using the gcc.vim compiler with
g:compiler_gcc_ignore_unmatched_lines enabled. A linker error did not
get recognized as an error on my machine using GCC 4.2.1 on OpenBSD.
Output from GCC:
cc -O2 -pipe -pedantic -std=c99 -Wall -Werror -Wextra -o bug bug.c
/tmp//cck5iAWg.o: In function `main':
bug.c:(.text+0x5): undefined reference to `foo'
collect2: ld returned 1 exit status
*** Error 1 in /home/a (<sys.mk>:85 'bug')
Attached is a patch including an attempt to resolve this issue.
--
:wq
--
--
You received this message from the "vim_dev" 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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/runtime/compiler/gcc.vim b/runtime/compiler/gcc.vim
index aee31d9..b3150e8 100644
--- a/runtime/compiler/gcc.vim
+++ b/runtime/compiler/gcc.vim
@@ -24,6 +24,7 @@ CompilerSet errorformat=
\%f:%l:\ %trror:\ %m,
\%f:%l:\ %tarning:\ %m,
\%f:%l:\ %m,
+ \%f:\\(%*[^\\)]\\):\ %m,
\\"%f\"\\,\ line\ %l%*\\D%c%*[^\ ]\ %m,
\%D%*\\a[%*\\d]:\ Entering\ directory\ [`']%f',
\%X%*\\a[%*\\d]:\ Leaving\ directory\ [`']%f',