MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: how do I portably discard stderr for MathLink programs

  • To: mathgroup at smc.vnet.net
  • Subject: [mg42351] Re: [mg42340] how do I portably discard stderr for MathLink programs
  • From: Sseziwa Mukasa <mukasa at jeol.com>
  • Date: Wed, 2 Jul 2003 06:36:13 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On Tuesday, July 1, 2003, at 08:45 AM, Langston, Matthew David wrote:

> I just ported my MathLink program to a new platform (Linux) and now 
> when I run my MathLink program the Mathematica message window keeps 
> popping up with a bunch of stderr output. The stderr output is simply 
> diagnostic output from a third party library that I have no control 
> over (but which I link my MathLink program against).
>
> I don't want users to see this output. How do I portably dump stderr 
> output in such a way that Mathematica doesn't keep popping up Message 
> windows. Is there a way to tell Mathematica to ignore this stderr 
> output?
>
> Warmest regards, Matt

I suppose you could redirect stderr using freopen from your code.  You 
should probably set it back to its original value before returning.

Regards,

Ssezi


  • Prev by Date: Re: how do I portably discard stderr for MathLink programs
  • Next by Date: Re: no results with 'InequalitySolve'
  • Previous by thread: Re: how do I portably discard stderr for MathLink programs
  • Next by thread: Re: how do I portably discard stderr for MathLink programs