How can I make linker errors jumpable in quickfix?
Example:
int foo(void);
int main(int argc, char* argv[]) {
foo();
}
Start up vim and run :set makeprg=gcc\ %
and try :make
. This produces a linker error and gives a press enter prompt. If I then check :copen
the linker error is there but prefixed with ||
and can't be jumped to. I want to be able to jump to the file, or even the reference itself if possible, when linker errors like this occur.
:help errorformat
– romainl Nov 16 '15 at 19:16foo()
has no definition. The idea is, linker errors are not necessarily a result of something written in your source code (to jump to). – VanLaser Nov 16 '15 at 22:32main
would be one example where there really is nowhere to jump. I'll see about figuring outerrorformat
and posting an answer. – Praxeolitic Nov 17 '15 at 8:33