'make' and textpad; capturing stderr

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
John Pye

'make' and textpad; capturing stderr

Post by John Pye »

Hi there

This is a question about using the 'Tools' menu to run GNU 'make' - I'm compiling a Fortran program, but it would be nice to be able to use Textpad more generally for 'make'-ing stuff.

When at a DOS prompt, I would normally just type 'make' from the correct
directory, and that would be it, I would see any compilation errors and
would know where to go.

I wanted to integrate the 'make' output into the 'Command Results' window in
TextPad so I could navigate to the error with a click, but unfortunately
with 'make', any compiler errors get put into 'stderr' and TextPad won't
pick them up.

I have tried a few things to redirect the output into TextPad, such as
making the tool parameters

make 2>&1

but this doesn't work althought I would expect it to. On the command line,

make >err.txt 2>&1

produces no output, with everything from stdout and stderr in the file - I
just want that file to be what is shown in TextPad, but I can't seem to do
it.

I'd greatly appreciate any suggestions anyone might have.

Cheers

John Pye
Post Reply