I am trying to compile my program using debugging symbols for use in gdb. I added the -g flag to my makefile, but I still get "Reading characters from ... (no debug characters found)" when I load the program in gdb. What's wrong?
Here is a stripped down example of my makefile, which should have the corresponding bits:
CPP = g++ CFLAGS = -c -g -Wall $(BIN): $(OBJ) $(CPP) $(LDFLAGS) $(OBJ) -o $(BIN) $(LIBS) <test.o>: <test.cpp> $(CPP) $(CFLAGS) <test.cpp> -o <test.o>
If you want to see all this, you can go here, although I do not think it is necessary:
http://pastebin.com/vGNjy0ga
Various notes .. I am compiling with MinGW on Windows, and I have SFML and OpenGL as dependencies.
And no, the -s flag is nowhere to be found in my makefile.
c ++ gcc makefile gdb debug-symbols
delaccount992
source share