This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Unbuffered output in mixed C / Fortran programs
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