Azzera filtri
Azzera filtri

libgfortran Symbol not found

9 visualizzazioni (ultimi 30 giorni)
Jonas Zimmermann
Jonas Zimmermann il 17 Apr 2015
Risposto: Jonas Zimmermann il 22 Apr 2015
I have a custom MEX-file which links to libgfortran through a helper library. libgfortran lives in /usr/local/lib/gcc/4.9/libgfortran.3.dylib. When I run my MEX-file in MATLAB (2014b, 2015a), this is the error message I get:
Invalid MEX-file '/Library/Matlab/toolbox/tool.mexmaci64':
dlopen(/Library/Matlab/toolbox/tool.mexmaci64, 6): Symbol not found:
__gfortran_transfer_array_write
Referenced from: /usr/local/opt/arpack/libexec/lib/libarpack.2.dylib
Expected in: /Applications/MATLAB_R2015a.app/sys/os/maci64/libgfortran.3.dylib
in /usr/local/opt/arpack/libexec/lib/libarpack.2.dylib
Now I found instructions here http://issm.jpl.nasa.gov/documentation/faq/matlab/ to replace the MATLAB-internal version of libgfortran with my system one. This is not satisfactory for a toolbox that will be shared with many people who do not necessarily control their MATLAB installation. Is there a better way to force MATLAB to use the correct version of libgfortran? This is on Mac OS X 10.10.3.

Risposta accettata

Jonas Zimmermann
Jonas Zimmermann il 22 Apr 2015

Più risposte (0)

Categorie

Scopri di più su Write C Functions Callable from MATLAB (MEX Files) in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by