Mercurial > hg > octave-nkf
diff src/octave.cc @ 4159:e9e2055ad0af
[project @ 2002-11-08 03:27:35 by jwe]
author | jwe |
---|---|
date | Fri, 08 Nov 2002 03:27:35 +0000 |
parents | ce74e9fa296b |
children | 301cc4cf87e9 |
line wrap: on
line diff
--- a/src/octave.cc +++ b/src/octave.cc @@ -74,6 +74,9 @@ #include "variables.h" #include <version.h> +// Kluge. +extern "C" void F77_FUNC (xerbla, XERBLA) (const char *, int, long); + extern void install_builtins (void); #if !defined (HAVE_ATEXIT) && defined (HAVE_ON_EXIT) @@ -375,6 +378,14 @@ sysdep_init (); + // The idea here is to force xerbla to be referenced so that we will + // link to our own version instead of the one provided by the BLAS + // library. But octave_NaN should never be -1, so we should never + // actually call xerbla. + + if (octave_NaN == -1) + F77_FUNC (xerbla, XERBLA) ("octave", 13, 6L); + initialize_error_handlers (); install_defaults ();