I am very bad at Fortran and have no clue how I can fix. I also checked the internet like crazy, it seems related to "Symbol mexFunction Unresolved or Not Defined" ( ). On macOS, you can use the recommended package manager MacPorts: Install Apples Command Line Developer Tools. On GNU/Linux, use the package manager of your Linux distribution to install gfortran. Furthermore lack of gcc (the GNU Compiler Collection) support for Apple Silicon seems to be holding back Fortran as well, since many open source Fortran project seems to depend on that. I have figured it out that the mxsetfield is called in the xxx.o like fptr = fortran_to_matlab(fact)Ĭall mxSetField( plhs(1), ind_i, f2, fptr ) fptr = fortran_to_matlab(ifact)Ĭall mxSetField( plhs(1), ind_i, f4, fptr ) fptr = fortran_to_matlab(cntl)Ĭall mxSetField( plhs(1), ind_i, f5, fptr ) fptr = fortran_to_matlab(icntl)Ĭall mxSetField( plhs(1), ind_i, f6, fptr ) fptr = fortran_to_matlab(info)Ĭall mxSetField( plhs(1), ind_i, f7, fptr ) fptr = fortran_to_matlab(rinfo)Ĭall mxSetField( plhs(1), ind_i, f8, fptr ) A recent gcc/gfortran compiler is needed (corresponding to the downloaded package). Apple hasn’t develop any publicly-available Fortran compiler to date, and there is no indication that would change. But when I run a code from a project gives me a issue which is listed on your post Undefined symbols for architecture x86_64: I manage to install the C & Fortran compiler in mac (OS10.13) with Matlab 2016b.
0 Comments
Leave a Reply. |