libgfortran Symbol not found
8 views (last 30 days)
Show older comments
Jonas Zimmermann
on 17 Apr 2015
Answered: Jonas Zimmermann
on 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.
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on C Shared Library Integration in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!