Author Topic: Support format of compiler message  (Read 2444 times)

Offline hcye

  • Multiple posting newcomer
  • *
  • Posts: 20
Support format of compiler message
« on: July 11, 2008, 07:19:22 am »
I am using C::B with Metaware compiler for ARC. With the default setting, I cannot double-click a compiler message and jump to the file and line. However, this compiler allows user to configure the message formats. Can someone tell me what C::B likes to see in order to allow such click and jump? Thanks in advance!

Huanchun

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Support format of compiler message
« Reply #1 on: July 11, 2008, 07:40:13 am »
C::B uses regular expressions to parse the compiler output.

You can have a look at this thread.
It's another compiler (with other output syntax) but more or less the same problem.

Offline hcye

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: Support format of compiler message
« Reply #2 on: July 11, 2008, 10:11:07 pm »
Thanks for the pointer. I found that gcc uses the following formats:

file_name:line_number: error [error message from the compiler]
file_name:line_number: warning [warning message from the compiler]

So by setting Metaware options -Hefmat and -Hwfmat to the above, it works without any changes to C::B.