I am new to Ubuntu and am using the 12.04 version on my laptop. I am trying to execute a C++ program which has Petsc libraries installed in it. I get an error when trying to run the program and so have installed GDB in Ubuntu.
The name of the program is ex1.c and is located in a folder called 'petsc-3.1-p8' on my computer. How do I run gdb in the terminal to see what is the error while I run this program?
Thanks in advance..