Click to See Complete Forum and Search --> : vi/gcc/terminal compilation errors???


UprightMan
10-26-2001, 01:03 PM
hey, I was wondering if there is a way/option to save the error/warning messages produced by g++ -c test.cpp to a file?? I looked over the man and a google search but have found nothing so far.

TIA.

EscapeCharacter
10-26-2001, 01:23 PM
g++ -o file file.c &>file.log
as simple as that, enjoy

UprightMan
10-26-2001, 01:29 PM
Many thanks

kmj
10-26-2001, 02:15 PM
you might have to do "2> file.log" instead of "> file.log" if it outputs error messages to stderr.