help-octave
[Top][All Lists]
Advanced

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

macosx mex error: failed to install .mex file function `myhello'


From: John W. Eaton
Subject: macosx mex error: failed to install .mex file function `myhello'
Date: Tue, 2 Jan 2007 22:35:59 -0500

On  2-Jan-2007, Thomas Treichl wrote:

| Then I compile myhello.c (cf. my last email) and enter octave.
| 
|    octave:1> myhello
|      I'm in function octave_dyld_shlib::open, file.c_str() is:
|        /Users/Thomas/Developement/octave/examples/myhello.mex
|      I'm in function octave_dyld_shlib::open, returnCode is: 1
|      I'm in function octave_dyld_shlib::open, handle is: 0x102d70
|      I'm in function octave_dyld_shlib::open, isOpen is: 1
|      I'm in function octave_dyld_shlib::search, handle is: 0x102d70
|      I'm in function octave_dyld_shlib::search, sym_name.c_str() is: 
mexFunction
|      I'm in function octave_dyld_shlib::search, symbol is: 0
|      I'm in function octave_dyld_shlib::search, handle is: 0x102d70
|      I'm in function octave_dyld_shlib::search, sym_name.c_str() is: 
mexfunction_
|      I'm in function octave_dyld_shlib::search, symbol is: 0
|      error: failed to install .mex file function `myhello'
|    octave:1>
| 
| So it seems to me as function NSLookupSymbolInModule always returns a NULL 
| pointer - no problem from octave, but a problem from the macosx-libs?

What is the output of running
 
  nm myhello.mex

?  Is the mexFunction name mangled in some way that Octave is not
expecting (it only checks for mexFunction and mexfunction)?

jwe



reply via email to

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