g77 supports only one unit number in a call to flush. just a guess, but looking at the variable names, ierr may be a status variable instead of a second unit. some other dialects of f77 have a "call flush" with two arguments, first being a unit number and the second being a status variable. if this is the case, then taking: call flush( nou, ierr) and turning it into: call flush( nou) call flush( ierr) will error because ierr is probably not equal to a valid unit number. give this a try: call flush (nou) ierr = 0 ! assume status is good from flush regards, bud davis On Tue, Feb 17, 2004 at 03:31:54PM -0800, Ramonet Blade wrote: > 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. Splitting it up into two calls does let the > code compile, however some runs do no execute. The > same code then compiled with a windows compiler will > result in errors. I fear this may be the culprit. > > Can you please advise on why this happening? > > Thanks > > -kirk > > ===== > -The Jolly Wizened Oaf! > > __________________________________ > Do you Yahoo!? > Yahoo! Finance: Get your refund fast by filing online. > http://taxes.yahoo.com/filing.html