Re: fortran source file renamed when using preprocessor directives
- From: Chip Coldwell <coldwell@xxxxxxxxxxxxx>
- Date: Tue, 30 Oct 2007 09:44:48 -0400
ravi <gotothati@xxxxxxxxx> writes:
Dear all,
I have written a simple FORTRAN program which include some header
files.
like:
$> cat test.F
program test
include 'test.h'
print *,"Hello World"
end
and test.h
print *,"This is test.h"
i have compiled as
$> g77 -ffree-form -g test.F -o test
and tried to debug with gdb:
(gdb) file test
Reading symbols from /home/ssdg_gridhra/tempdir/test/LibTest/
test...done.
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) b main
Breakpoint 1 at 0x804a4e6
(gdb) r
Starting program: /home/ssdg_gridhra/tempdir/test/LibTest/fsrl.deb
Breakpoint 1, 0x0804a4e6 in main ()
(gdb) where
#0 0x0804a4e6 in main ()
(gdb) l
1 /tmp/ccjXFIn1.f: No such file or directory.
in /tmp/ccjXFIn1.f
Try this instead
(gdb) file test
(gdb) b MAIN__
(gdb) r
Note the two trailing underscores after the all-caps MAIN. Your
breakpoint above is in the g77 Fortran run-time initialization, not in
your program.
Chip
--
Charles M. "Chip" Coldwell
"Turn on, log in, tune out"
Somerville, Massachusetts, New England
.
- References:
- Prev by Date: Re: help with MPICH ? (please)
- Next by Date: IDE for Linux for C/C++ & Fortran
- Previous by thread: Re: fortran source file renamed when using preprocessor directives
- Next by thread: IDE for Linux for C/C++ & Fortran
- Index(es):
Relevant Pages
|