I try compiling some large code with the -g option but when I try running the code with gdb it says the emitted code contains no debugging symbols.

Reading symbols from /cygdrive/c/dev/dotr/src/dotr.exe...(no debugging symbols found)...
done.

This is cygwin on windows but I figured linux group would still be better
Anybody know what I could do to get debugging symbols emitted?