User forums > Using Code::Blocks

Support format of compiler message

(1/1)

hcye:
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

Jenna:
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.

hcye:
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.

Navigation

[0] Message Index

Go to full version