help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: embedding octave - floating point exception


From: Jason Riedy
Subject: Re: embedding octave - floating point exception
Date: Tue, 10 Mar 2009 17:58:14 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

And John W. Eaton writes:
> For your progmam that embeds Octave, are you using the same libraries
> (liboctinterp, liboctave, libcruft) that are used by the copy of
> Octave that runs correctly?  If so, then I don't understand how this
> can work correctly for Octave but not for your program.

Odds are that some other component is changing the FPU flags to induce
interrupts on exceptional behavior.  It might be worth wrapping all
interpreter entry points with C99's feholdexcept / feupdateenv when
they're available.  I have autoconf macros to check those sitting around
*somewhere*.

Jason


reply via email to

[Prev in Thread] Current Thread [Next in Thread]