我读了文档,但越看越困惑。
编译器生成了以下错误:
rot;
^
"cpp\c1.cpp", line 13: error(114): identifier
"rot" is undefined
1 error detected in the compilation of "c1.cpp".
我知道如何检测给定错误行的行号,但我的错误列表中会有很多额外无用的信息,并且错误消息被分成了两行,我希望将其合并。
我的起始错误格式为:
:set efm=\"%f\"\\,\ line\ %l:\ error(%n):\ %m
既然我们在这里,是否有一种快速测试 efm 的方法,而不必总是运行 make all?
"%f>%l:%c:%t:%n:%m,%f:%l: %t%*\\D%n: %m,%f %l %t%*\\D%n: %m,%*[^\"]\"%f\"%*\\D%l: %m,%f:%l:%m,%f|%l| %m"
。 - Cascabel