Mex on os X
1 view (last 30 days)
Show older comments
I have Yosemite 10.10, Xcode 6.4, Matlab 2015b. I copy an example yprime.c from /Applications/MATLAB_R2015b.app/extern/examples/mex/ Then I compile with line /Applications/MATLAB_R2015b.app/bin/mex yprime.c and I get an error:
dyld: Symbol not found: __ZN6matrix6detail10noninlined12mx_array_api10mxMallocExEm
Referenced from: /Applications/MATLAB_R2015b.app/bin/maci64/libmwm_dispatcher.dylib
Expected in: /usr/lib/libSystem.B.dylib
in /Applications/MATLAB_R2015b.app/bin/maci64/libmwm_dispatcher.dylib
/Applications/MATLAB_R2015b.app/bin/mex: line 365: 3709 Trace/BPT trap: 5 $MATLAB/bin/maci64/mex $args
Solution: In my .bash_profile I had this line "export DYLD_LIBRARY_PATH=/usr/local/lib". By removing it I got rid of the error when compiling.
1 Comment
Walter Roberson
on 9 Oct 2015
Technical note: that symbol probably corresponds to
_matrix::detail::noninlined::mx_array_api::mxMallocEx(unsigned long)
Answers (0)
See Also
Categories
Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!