Results 1 to 5 of 5
Hi all
How do I redirect the compiler warning and errors to file
from a makefile ?
thanks
Tom...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-19-2007 #1Just Joined!
- Join Date
- Apr 2007
- Posts
- 4
gcc output to file in makefile
Hi all
How do I redirect the compiler warning and errors to file
from a makefile ?
thanks
Tom
- 04-19-2007 #2Linux Enthusiast
- Join Date
- Aug 2006
- Posts
- 631
To redirect the errors to a file:
RegardsCode:command 2>> logfile
- 04-20-2007 #3Just Joined!
- Join Date
- May 2005
- Posts
- 21
Originally Posted by tomerg this will put all prints like error and warning in outputfile.Code:make &> outputfile
- 04-22-2007 #4Just Joined!
- Join Date
- Apr 2007
- Posts
- 4
Hi
1. the ">>" way doesnt send the warnings to the file only the make
commands
2. the "&>" method gives me an error "invalid null command"
thanks
- 04-22-2007 #5Just Joined!
- Join Date
- Apr 2007
- Posts
- 4
it works using bash script
thanks!


Reply With Quote
