Fortran 90 question -

I have the following statement in my fortran90 file(At present Iam using
Fortran90 from Tru64 unix(DEC-Compaq_HP). How can I convert it to
pgf90 ?


COPPY = 'cp out/NOFILE.OUT '//TOTFILENAME
call system(COPPY)


I get the following error when I compile with pgf90 command:


PGF90-S-0084-Illegal use of symbol system - attempt to CALL a FUNCTION

Please provide an example if possible.

Thanks
Kumar

Hi,

Which release of compiler do you use? 32-bit, 64-bit? What OS?
I tried your program and it runs just fine.

program me
character156 COPPY
character
156 TOTFILENAME
TOTFILENAME= ’ TOFILE.OUT’

COPPY=‘cp out/NOFILE.OUT’ // TOTFILENAME

call system(COPPY)

print *, COPPY
end


% pgf90 1200.f -V7.1-6 -tp k8-32
% mkdir out;touch out/NOFILE.OUT
% a.out
cp out/NOFILE.OUT TOFILE.OUT

I tried both 32-bit and 64-bit.

Hongyon