help-octave
[Top][All Lists]
Advanced

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

Re: error: failed to install .mex file function `xyz'


From: David Grohmann
Subject: Re: error: failed to install .mex file function `xyz'
Date: Thu, 21 Jun 2007 11:25:36 -0500
User-agent: Thunderbird 1.5.0.12 (Windows/20070509)

John W. Eaton wrote:
On 21-Jun-2007, David Grohmann wrote:

| I am writing a mex file for octave, but am getting this error when | trying to load it. Is there a way to get a more specific error as to why | it is not loading? | | octave:1> which xyz
| error: failed to install .mex file function `xyz'
| which: `xyz' is undefined
| octave:1> version
| ans = 2.9.12

What kind of system are you using?

A MEX file is just a shared/dynamically loadable library.  The details of
loading it depend on the type of system you are using.  Look in
liboctave/oct-shlib.cc to see what Octave is doing when it loads a
shared library.  For systems that use dlopen to perform this task, we
have:

      library = dlopen (file.c_str (), flags);

      if (library)
        stamp_time ();
      else
        {
          const char *msg = dlerror ();

          if (msg)
            (*current_liboctave_error_handler) ("%s", msg);
        }

so I assume that dlerror is not returning anything.

I agree that it would be nice to have more information about precisely
what is failing, but I don't know how to get more information about
the failure.  If there is something more we could do here, I'd
consider patches.

jwe
Well the mex file wasn't built correctly, almost nothing was linked in. So I'm not sure if octave could have provided much of a better error after all.

--
David Grohmann
Senior Student Associate
Applied Research Lab : UT Austin : ESL - S206
Office: 512-835-3237




reply via email to

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