simple question. I want to be able to run my executable with a program like ddd or kdbg. How do I add the debugging flag so that kdbg will show the source code?
My make file macros look like
CC = gcc
CFLAGS = `pkg-config --cflags gtk+-2.0`
LIBS = `pkg-config --libs gtk+-2.0`
I've tried:
CFLAGS = `pkg-config --cflags gtk+-2.0` -g
and
CC = gcc -g
but neither work. kdbg opens without showing code.
Fixed: The problem was that I wasn't deleted the o files, and so the make was just relinking those existing object files without recompiling them.