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
Show older comments
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 Comments
Geoff Hayes
on 28 Nov 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
on 30 Nov 2015
Answers (1)
James Tursa
on 29 Nov 2015
Edited: James Tursa
on 29 Nov 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
Categories
Find more on Fortran with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!