Page 1 of 1

Can't junp to line in compiler output

Posted: Mon Dec 10, 2007 5:55 pm
by lwidener
I have been using regular expressions to jump to line numbers with previous compilers but am having problems making this one work. The error report looks like this:
I:\CCode\V3Code\Initcpu.c:160: error: `ETPU_PWM_FUNCTION_NUMBER' undeclared (first use in this function)
I:\CCode\V3Code\Initcpu.c:160: error: (Each undeclared identifier is reported only once
I:\CCode\V3Code\Initcpu.c:160: error: for each function it appears in.)
Steven at tech support suggested I try
^I:[^:]+:[0-9]+:[^:]+:
with posix selected. That doesn't do anything when I try it.
I normally don't use posix.
I'm not very fluent in posix and would appreciate whatever help with the regular expression I need.
Thanks

Posted: Mon Dec 10, 2007 7:04 pm
by MudGuard
You have to define the groups with (), that define the filename and the line number.