Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 392927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:12:26+00:00 2026-05-12T16:12:26+00:00

I read the docs, but got even more confused. I have the following error

  • 0

I read the docs, but got even more confused.
I have the following error generated by the compiler:

          rot;
          ^
"cpp\c1.cpp", line 13: error(114): identifier
          "rot" is undefined


1 error detected in the compilation of "c1.cpp".

I know how to detect the line where the error line is given, but I get loads of extra useless info in my errorlist, and the error message is split in two lines, whcih i would prefer to merge.

My starting errorformat is:

:set efm=\"%f\"\\,\ line\ %l:\ error(%n):\ %m

Since we are at it, is there a quick way of testing the efm without resorting to run make all the time?

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:12:27+00:00Added an answer on May 12, 2026 at 4:12 pm

    First of all, I talk about debugging. Unfortunately, there’s no particularly easy way of doing it, but one useful possibility is to run make and spit the output into a file and then:

    :let &makeprg="cat ~/outputfile.log"
    :make
    

    Regarding making the errorformat, this does require a bit of trial and error. You can use %A, %C and %Z for multiline messages and you can use %-G to ignore stuff. The order is very important and note that sometimes the %C or even %Z come before the %A! In your case, you may be able to get somewhere with the efm below. I tend to use let &efm = and let &efm .= rather than set as you don’t have to escape every space or quotation mark and you can build it up gradually. It’s also much more readable.

    " Start of the multi-line error message (%A),
    " %p^ means a string of spaces and then a ^ to
    " get the column number
    let &efm  = '%A%p^' . ','
    " Next is the main bit: continuation of the error line (%C)
    " followed by the filename in quotes, a comma (\,)
    " then the rest of the details
    let &efm .= '%C"%f"\, line %l: error(%n): %m' . ','
    " Next is the last line of the error message, any number
    " of spaces (' %#': equivalent to ' *') followed by a bit
    " more error message
    let &efm .= '%Z %#%m' . ','
    " This just ignores any other lines (must be last!)
    let &efm .= '%-G%.%#'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've read the docs but still a bit confused. I have the following: $(document).ready(function(){
I have read the docs and everything but I'm very confused. I never needed
I've read some docs about the .NET Garbage Collector but i still have some
I have read Oauth2 Docs but still am yet to get a start to
I've read through all of the Spring 3 Web docs: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/spring-web.html but have been
I've read through the docs but still can't see how to target individual cells
I have read all the docs I can get my hands on and google'd
I have read through the Rails docs for Routing , Restful Resources , and
I read something about this on PHP docs , but it's not clear to
I read that docs.jquery.com uses wiki to do the API documentation. I have been

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.