verbose drivin me nuts

Programming, for all ages and all languages.
Post Reply
User avatar
overburn
Member
Member
Posts: 50
Joined: Sun Feb 22, 2009 9:15 am

verbose drivin me nuts

Post by overburn »

how do i disable gcc's verbose? i've searched the net but to no end. it just drives me mad.. instead of spending cpu cycles on outputting information i don't need , i want it to just output errors and warnings...
One Tequila, Two Tequila, Three Tequila, Floor!
User avatar
yemista
Member
Member
Posts: 299
Joined: Fri Dec 26, 2008 12:31 pm
Location: Boston
Contact:

Re: verbose drivin me nuts

Post by yemista »

what kind of output are you trying to ignore? The only output I get from gcc is warning and errors.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: verbose drivin me nuts

Post by AJ »

Hi,

If you are using a makefile, start each call to GCC with '@', which will suppress echoing each command.

Cheers,
Adam
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: verbose drivin me nuts

Post by JamesM »

overburn wrote:how do i disable gcc's verbose? i've searched the net but to no end. it just drives me mad.. instead of spending cpu cycles on outputting information i don't need , i want it to just output errors and warnings...
If it's outputting anything, it should be attended, not >/dev/null 'd. There should be no reason to supress that output.
User avatar
overburn
Member
Member
Posts: 50
Joined: Sun Feb 22, 2009 9:15 am

Re: verbose drivin me nuts

Post by overburn »

i meant echo only errors and warnings , and output the rest in the log file, not suppress everything
thanks aj :)
One Tequila, Two Tequila, Three Tequila, Floor!
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: verbose drivin me nuts

Post by Solar »

If you don't want to touch the Makefile itself for some reason, 'make -s' does the same.
Every good solution is obvious once you've found it.
Post Reply