fortran source file renamed when using preprocessor directives
- From: ravi <gotothati@xxxxxxxxx>
- Date: Tue, 30 Oct 2007 07:44:50 -0000
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
Why is it showing the file name "tmp/ccjXFIn1.f " instead of
test.F ??
I have supplied the -g option too.
When I write the file as test.f ( small f extention ) it is showing
correctly.
Can't we retain the same file name even after the preprocessing *.F
files ??
Thanks a lot for any replies.
--
Ravi.T
.
- Follow-Ups:
- Re: fortran source file renamed when using preprocessor directives
- From: Chip Coldwell
- Re: fortran source file renamed when using preprocessor directives
- From: Arjen Markus
- Re: fortran source file renamed when using preprocessor directives
- Prev by Date: Re: Co-Array Fortran
- Next by Date: Re: fortran source file renamed when using preprocessor directives
- Previous by thread: Co-Array Fortran
- Next by thread: Re: fortran source file renamed when using preprocessor directives
- Index(es):
Relevant Pages
|