Tuesday, October 13, 2009

[QnA] Redirect the error message given by gcc compiler

I tried the redirect operator ``>'' to write the error and warning message to files, but it didn't work. There was nothing written into the files. Then, I found the solution:

$ gcc $> file

The ``$'' character is needed to make the redirection work.


No comments:

Post a Comment