Unbuffered output in mixed C / Fortran programs

Georg Denk news_gd@gmx.de
Wed Oct 15 16:12:00 GMT 2008


Dear Steve!

Steve Kargl wrote:
> Since you're already doing mix language program, you can
> use the ISO C binding mechanism to call putenv at the
> start of main to set GFORTRAN_UNBUFFERED_PRECONNECTED.

I'm afraid that this will not work. As far as I know, the
environment variables are checked during loading of
the binary. So setting them at runtime is already too
late. At least this was the result of a small test, where
I added a putenv call at the beginning of the main
routine (which is in C, but I don't think this makes
a difference).

Best wishes,

Georg
-- 
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196



More information about the Fortran mailing list