Hi I am getting the following error: Mex file entry point is missing. Please check the (case-sensitive) spelling of mexFunction (for C MEX-files), or the (case-insensitive) spelling of MEXFUNCTION (for FORTRAN MEX-files). What should I do? Thanks
Mostrar comentarios más antiguos
Mex file entry point is missing. Please check the (case-sensitive) spelling of mexFunction (for C MEX-files), or the (case-insensitive) spelling of MEXFUNCTION (for FORTRAN MEX-files).
2 comentarios
Geoff Hayes
el 28 de Nov. de 2015
Joshua - please describe what you are doing when this error is generated. What code are you calling? Is it something that you have written in MATLAB, C, or Fortran?
Joshua
el 30 de Nov. de 2015
Respuestas (1)
James Tursa
el 29 de Nov. de 2015
Editada: James Tursa
el 29 de Nov. de 2015
You need to have this code in your Fortran file which will serve as the entry point for the mex function:
#include "fintrf.h"
subroutine mexFunction(nlhs, plhs, nrhs, prhs)
implicit none ! <-- Not required but highly recommended
integer nlhs, nrhs
mwPointer plhs(*), prhs(*)
!\
! Your code goes here
!/
end subroutine
Categorías
Más información sobre Fortran with MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!