libgfortran Symbol not found
7 ビュー (過去 30 日間)
古いコメントを表示
Jonas Zimmermann
2015 年 4 月 17 日
回答済み: Jonas Zimmermann
2015 年 4 月 22 日
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 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で C Shared Library Integration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!