gfortran (v4.0) redirected output `feature'?

Juan Gallego Little.Boss@physics.mcgill.ca
Tue Jun 21 19:31:00 GMT 2005


On 2005-06-21 11:30-0700, Steve Kargl <sgk@troutmask.apl.washington.edu> wrote:

| On Tue, Jun 21, 2005 at 02:06:15PM -0400, Juan Gallego wrote:
| > 
| > 
| > as expected. but if stdout is redirected to a file, c_routine's output
| > disappears:
| >   
| > > ./xfcnam > t
| > STOP 0
| > > cat t
| 
| PR libfortran/20179
| 
| This has been fixed at least in cvs mainline.  The patch may have
| been applied to the 4.0 branch, but I'm not in a position to 
| investigate any further.

hi Steve,

many many thanks. adding the fflush calls to the c_routines does indeed fix 
the problem. i'll try the patch and rebuild gfortran see if that's enough.

-- 
juan



More information about the Fortran mailing list