linking FORTRAN and MATLAB (fengdemo.F)

2 views (last 30 days)
meisam
meisam on 10 Feb 2014
Edited: meisam on 10 Feb 2014
I have read a lot about the issue of fengdemo.F but I am still stuck in it. I use Linux 64 bites,bash, MATLAB R2013b,and gcc 4.7(they are compatible!) I have set DL_LIBRARY_PATH and also PATH variables correctly in bash. I could compile engdemo.c using mex function in matlab successfully but however much I try to compile the fortran version(fengdemo.F)I get the error "Unclassifiable statement" referring to mwPointer and mwSize. what is the problem? based on what I found in this site, I changed mwPointer to mwpointer(uppercase P to lower case one!!!) and also mwSize to integer*8 . it was compiled successfully without error, even though I dont like this chaotic and irrational trick/solution!!! anyway, when I tried to execute the application(after the chaotic trick) I get segmentation error! is there anyone to explain to me what the problem is. I hope that someone solves this issue fundamentally and comprehensively. please help me...

Answers (0)

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!