pass several filenames to the subroutine
- From: "Mike" <acout@xxxxxxx>
- Date: 30 Jun 2006 00:53:08 -0700
Hi,
program main
character*80,allocatable :: fname(:)
allocate(fname(3))
fname(1)="a1.dat"
fname(2)="a2.dat"
fname(3)="a3.dat"
print *,fname
call tt(fname)
stop
end
subroutine tt(fname)
character*(*) fname(:)
print *,fname
return
end
After compiled, it shows
"Warning: In the call to TT, actual argument #1 is character valued and
is being passed to a non-character dummy argument."
I'd like to pass several filenames to the tt subroutine. What does the
warning message mean?
thank you very much.
Mike
.
- Follow-Ups:
- Re: pass several filenames to the subroutine
- From: Ian Bush
- Re: pass several filenames to the subroutine
- Prev by Date: Re: linking g95-built library from VC++
- Next by Date: WRITE, FORMAT problem
- Previous by thread: linking g95-built library from VC++
- Next by thread: Re: pass several filenames to the subroutine
- Index(es):
Relevant Pages
|