Re: Redirect IO of target
Re: Redirect IO of target
- Subject: Re: Redirect IO of target
- From: Scott Ribe <email@hidden>
- Date: Wed, 28 Sep 2011 19:34:02 -0500
On Sep 28, 2011, at 6:40 PM, Michael Lehn wrote:
> of course I can modify each of the fortran programs such that it re-opens stdin/-out. But if possible I don't
> want to touch the fortran code if possible. There are too many of them and I would have to redo this for
> every upcoming LAPACK version.
You don't modify the fortran. In your C++ you reopen the file descriptors used by the Fortran app, to make them duplicates of stdin & stdout. Then the Fortran app reads & writes stdin & stdout.
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden