Rowena,
I had a similar problem on Visual Fortran (CVF). This might work for you
also, try with:
hi::a
instead of
a
Regards,
Mandeep
-----Original Message-----
From: Rowena Lohman [mailto:[log in to unmask]]
Sent: Friday, June 23, 2000 2:54 PM
To: [log in to unmask]
Subject: dbx, modules
I've found that dbx won't 'see' variables which are
within a module. If I run the program shown below:
MODULE hi
real,allocatable::a(:)
END MODULE hi
PROGRAM test
USE hi
IMPLICIT none
INTEGER b
b=2
ALLOCATE(a(2))
a=(/1,2/)
WRITE(*,*)a
END PROGRAM test
through dbx and ask it to print the value of a, I get:
dbx: "a" is not defined in the scope `test`test.f90`MAIN`
Whereas, it can see b just fine.
Any ideas? There are about 3 of here who are stumped on this. I'm
using
dbx with Sun WorkShop 5.0 release. Thanks a lot for your time,
Rowena
--
_________________________________
Rowena B. Lohman
Division of Geological and Planetary Sciences
MSC 100-23
California Institute of Technology
626-395-6982
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|