Borrar filtros
Borrar filtros

libgfortran Symbol not found

9 visualizaciones (últimos 30 días)
Jonas Zimmermann
Jonas Zimmermann el 17 de Abr. de 2015
Respondida: Jonas Zimmermann el 22 de Abr. de 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.

Respuesta aceptada

Jonas Zimmermann
Jonas Zimmermann el 22 de Abr. de 2015

Más respuestas (0)

Categorías

Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by