• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Redirect IO of target
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Redirect IO of target
      • From: Scott Ribe <email@hidden>
References: 
 >Redirect IO of target (From: Michael Lehn <email@hidden>)
 >Re: Redirect IO of target (From: Jens Alfke <email@hidden>)
 >Re: Redirect IO of target (From: Michael Lehn <email@hidden>)
 >Re: Redirect IO of target (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: Redirect IO of target
  • Next by Date: Re: Redirect IO of target
  • Previous by thread: Re: Redirect IO of target
  • Next by thread: Re: Redirect IO of target
  • Index(es):
    • Date
    • Thread