title: No debugging symbols in gdb even when compiling with -g flag
body: <p>I am trying to compile my program with debugging symbols for use in gdb. I have added the -g flag to my makefile but I still get "Reading symbols from ...(no debugging symbols found)" when I load the program in gdb. What is wrong??</p>
  
  <p>Here is a stripped down example of my makefile which should have the relevant bits:</p>
  
  <pre><code>CPP = g++
  CFLAGS = -c -g -Wall
  
  $(BIN): $(OBJ)
   $(CPP) $(LDFLAGS) $(OBJ) -o $(BIN) $(LIBS)
  
  &lt;test.o&gt;: &lt;test.cpp&gt;
   $(CPP) $(CFLAGS) &lt;test.cpp&gt; -o &lt;test.o&gt;
  </code></pre>
  
  <p>If you'd like to see the whole thing you can go here instead, though I don't <em>think</em> it's necessary:</p>
  
  <p><a href="http://pastebin.com/vGNjy0ga" rel="noreferrer">http://pastebin.com/vGNjy0ga</a></p>
  
  <p>Miscellaneous notes.. I'm compiling with MinGW on Windows and I have SFML and OpenGL as dependencies.</p>
  
  <p>And no, the -s flag is nowhere to be found in my makefile.</p>