libgfortran Symbol not found

9 次查看(过去 30 天)
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.

采纳的回答

Jonas Zimmermann
Jonas Zimmermann 2015-4-22

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Write C Functions Callable from MATLAB (MEX Files) 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by