Re: Redirect IO of target
Re: Redirect IO of target
- Subject: Re: Redirect IO of target
- From: Michael Lehn <email@hidden>
- Date: Thu, 29 Sep 2011 02:39:07 +0200
Am 29.09.2011 um 02:34 schrieb Scott Ribe:
> 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 & stout.
But it is the Fortran program (from the LAPACK test suite) that gets called first. This in turn calls my C++ functions …
Or do you suggest to implement a C++ wrapper that redirects the IO and then calls the Fortran program? I already tried that via "exec" but then the debugger got lost ... _______________________________________________
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