>I'm now using gcc and vim and want to do the same thing. I've worked out
>that vim can read in the error messages using the -q option (quickfix)
>but how (the hell) do I send the gcc error and warning messages to a
>file?!
Not exactly sure what you are asking. Do you want to direct the error
messages to a file, or do you want to go further and insert the errors
as comments in the source file?
For the former, just do
gcc blah blah > errors 2>&1
The 2>&1 tells bash/sh to merge the output on stderr with stdout so they
will go into the file errors.
Now you have the errors in a file. There used to be a program on BSD
systems called error or errors that would carse diagnostic messages from
compilers for filenames and line numbers and insert them into the source
file at the right line numbers as comments. So you could do:
make 2>&1 | error
and then re-edit the sources to fix. I haven't seen a Linux version of
this. Anybody knows if it's been ported?
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text