/root/init.c: No File or Directory in GDB
Hi
I can not debug my programs because something has gone wrong with gdb: I compile a file called mheap.cpp, which has only uses iostream.h, and algorithm.h, it compiles fine. when I run gdb and set a break point at line 108, which is the main procedure it says No line 108 in file "init.c". when I fireup ddd and load the executable it says: "/root/init.c: No File or Directory" I never had a file init.c in root, whats wrong? |
Just a shot in the dark, but did you remember to compile with the debugging option ( -g )?
|
Quote:
|
All times are GMT -5. The time now is 02:13 PM. |