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
foo()
has no definition. The idea is, linker errors are not necessarily a result of something written in your source code (to jump to).main
would be one example where there really is nowhere to jump. I'll see about figuring outerrorformat
and posting an answer.