I'm new to gcc/g77 and would appreciate recommendations on the following problem.
I have the following line:
call flush ( nou, ierr)
yet during compilation receive the following error:
call flush ( nou, ierr)
^
Too many arguments passed to intrinsic `FLUSH' at (^)
According to documentation, FLUSH will accept multiple units.
Not according to our documentation (see http://gcc.gnu.org/onlinedocs/gcc-3.3.2/g77/Flush-Intrinsic.html#Flush%20Intrinsic
Flush Intrinsic
CALL Flush(Unit)
Unit: INTEGER; OPTIONAL; scalar; INTENT(IN).
Intrinsic groups: unix.
Description:
Flushes Fortran unit(s) currently open for output. Without the optional argument, all such units are flushed, otherwise just the unit specified by Unit.
Some non-GNU implementations of Fortran provide this intrinsic as a library procedure that might or might not support the (optional) Unit argument.
Hope this helps,
-- Toon Moene - mailto:toon@xxxxxxxxxxxxxxxxxxxx - phoneto: +31 346 214290 Saturnushof 14, 3738 XG Maartensdijk, The Netherlands Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html GNU Fortran 95: http://gcc.gnu.org/fortran/ (under construction)