| View previous topic :: View next topic |
| Author |
Message |
tzahel
Joined: 23 May 2007 Posts: 2
|
Posted: Thu May 24, 2007 4:20 am Post subject: pgdbg doesn't load program |
|
|
When I try to debug my Fortran 90 program (which was compiled with -g) with pgdbg I get this message:
NOTE: Can't find main function compiled -g
and the program doesn't load.
Could this be a problem of the compilation?
regards,
Thomas |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Thu May 24, 2007 10:08 am Post subject: |
|
|
Hi Thomas,
Are there any other error messages? Please try with the flag "-text" (no gui) since it might give us more information.
Thanks,
Mat |
|
| Back to top |
|
 |
tzahel
Joined: 23 May 2007 Posts: 2
|
Posted: Fri May 25, 2007 12:04 am Post subject: |
|
|
Hi Mat,
starting pgdbg with -text gives the following message:
Loaded: /home/thomas/programs/kLMC/Code_test_pgi/kLMCdb.exe
ERROR: No target selected.
NOTE: Can't find main function compiled -g
regards,
Thomas |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Tue May 29, 2007 10:25 am Post subject: |
|
|
Hi Thomas,
The problem is that PGDBG is unable to load the executable for some reason. Please make sure the execuable exists and that it's compiled for the same target (32 or 64-bit) as debugger. For example, if kLMCdb.exe is a 32-bit application, then eiter set your PATH to your PGI 32-bit installation or add "-tp k8-32" to the PGDBG command line to envoke the 32-bit debugger.
- Mat |
|
| Back to top |
|
 |
|