Is there any way to get readable gcc error and warning output at the command line?

前端 未结 9 980
借酒劲吻你
借酒劲吻你 2020-12-23 21:58

For some long errors, the gcc output is dense and has lots of line-wrapping etc. Especially when errors are subtle, it can take me 10-30 seconds of squinting to parse it wi

9条回答
  •  鱼传尺愫
    2020-12-23 22:06

    check diagcc out, you can get something like this:

    colored message demo

    If your gcc ≥ 4.9, you can use argument -fdiagnostics-color=always.

提交回复
热议问题