1

Compiling code with GCC or Clang can result in some colorful error outputs.

Linking code, however, doesn't enjoy the same luxury. It seems like the GNU Linker doesn't support colorized error output right out of the box.

Is there a way around this? Is it possible to colorize/stylize linker errors from ld?

  • "Probably?" What would you color, specifically? – Jeff Schaller Feb 24 at 14:49
  • Personally? The file name and the offset within the file. But of course any scheme that would make linker errors easier to read is fine – nmd Feb 24 at 15:01
  • It's just that your question is broadly phrased; if I colored the first letter of every line green, that's technically an answer to your question, but probably not what you're after, which is why I asked for clarification. – Jeff Schaller Feb 24 at 15:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.