[ale] gcc programming
Fulton Green
ale at FultonGreen.com
Sat Jan 22 22:51:00 EST 2005
On Sat, Jan 22, 2005 at 09:52:41PM -0500, Geoffrey wrote:
> You'll likely want to write the debug info to standard error and capture.
>
> Here's how I do it in C so that I can track where the data was spit out:
>
> (void)fprintf(stderr, "%s %d: %s\n", __FILE__, __LINE__, debugdata);
>
> Then when you run your program, do this:
>
> program 2> program.err
Which is basically what I said in my post earlier tonight, except I was
too lazy to copy 'n' paste the printf() example from Google.
Geoffrey ... did you not receive my earlier post?
More information about the Ale
mailing list