Mex on os X
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Walter Roberson
le 9 Oct 2015
Technical note: that symbol probably corresponds to
_matrix::detail::noninlined::mx_array_api::mxMallocEx(unsigned long)
Réponses (0)
Voir également
Catégories
En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!