Problem jumping to source from Command Results
Posted: Fri Oct 06, 2000 8:18 am
Hi - I'm evaluating v4.3.2 under NT4. I'm trying to write a regular expression to allow me to jump to a source code line from my compiler output in the Command Results window.
The compiler outputs in the following form:
Compiling time.c into time.o
time.c: In function `FindModule':
time.c:14: `pfdummy' undeclared (first use this function)
time.c:14: (Each undeclared identifier is reported only once
time.c:14: for each function it appears in.)
make: *** [time.o] Error 1
So I'm using the following regexp:
^\([^:]+\):\([0-9]+\):
This matches the format I want when I search the Command Results window, but doesn't work when I double-click (status bar reports "Cannot jump to item under the cursor".
I don't really understand the meaning of the "Registers" section of the tool preferences dialog - I've set it up for File=1, Line=2, Column=<empty>.
Can anyone help?
Many thanks,
Pete
The compiler outputs in the following form:
Compiling time.c into time.o
time.c: In function `FindModule':
time.c:14: `pfdummy' undeclared (first use this function)
time.c:14: (Each undeclared identifier is reported only once
time.c:14: for each function it appears in.)
make: *** [time.o] Error 1
So I'm using the following regexp:
^\([^:]+\):\([0-9]+\):
This matches the format I want when I search the Command Results window, but doesn't work when I double-click (status bar reports "Cannot jump to item under the cursor".
I don't really understand the meaning of the "Registers" section of the tool preferences dialog - I've set it up for File=1, Line=2, Column=<empty>.
Can anyone help?
Many thanks,
Pete