Hi there, I am trying to debug some C code and am coming up with the following error when I run pgbdg:
NOTE: Can’t find main function compiled -g
However, there is a main function and the code starts to run (and eventually falls over, hence the need to debug). The code compiles with a couple of warnings (Function XXX has non-ptototype declaration in scope) and, as I said, starts to run, thereby running the main function before falling over later on. What do I need to do to be able to debug this code and find out where it’s really going wrong?
Any help you can offer would be greatly appreciated.