Tech Journal Back to Tech Journal

Why doesn't valgrind tell me the line numbers where the errors happen?

To get Valgrind to print line numbers on error, you must compile your programs with the -g compiler flag. (To make the debug/symbol data available to valgrind)

Last updated on 2007-05-06 06:43:12 -0700, by Shalom Craimer

Back to Tech Journal