From: rockybalboa on
Hi, I am new to mexing with fortran. I set up succesfully the gfortran compiler but have not been able to run any code.

I can compile succesfully the code:

mex yprime95.f90

but then when I execute:

yprime95(1, 1:4)

I got the following error message:

??? Invalid MEX-file 'C:\Users\Downloads\examples\yprime95.mexw32': Invalid access to memory location.

The code should be fine since it was an example from the web. I'm using gnumex and following these instructions http://209.85.229.132/search?q=cache:FyvTbsZRM9gJ:www.mathworks.com/matlabcentral/fileexchange/11506%3Fcontroller%3Dfile_infos%26download%3Dtrue+gnumex+old+versions&cd=7&hl=es&ct=clnk&gl=es


thanks!

Javier