Ask Your Question

Unable to see compiler error messages in Fedora 28 in color

asked 2018-09-07 19:43:35 -0500

fedvad gravatar image

I only see black and white error messages on my terminal. what is the remedy for this? I am using the default gnome-terminal

edit retag flag offensive close merge delete


Is your build system using Autotools, CMake or ninja? Often, coloured compiler messages are only enabled in ninja.

genodeftest gravatar imagegenodeftest ( 2018-09-08 01:26:42 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-09-07 21:42:47 -0500

florian gravatar image

updated 2018-09-07 22:11:39 -0500

What compiler are you actually talking about? GCC?

Install colorgcc.

Also, I think GCC has an internal feature, try -fdiagnostics-color.


$ gcc -fdiagnostics-color=auto foo.c

Check out the documentation here:

edit flag offensive delete link more


Also, check this Q/A - many suggestions...

florian gravatar imageflorian ( 2018-09-07 22:07:43 -0500 )edit

Question Tools


Asked: 2018-09-07 19:43:35 -0500

Seen: 83 times

Last updated: Sep 07 '18