I checked the doc but I do not meet particular recommendation. However I try to adjust the code without any results.
Could be the underscore appended the reason? The undefined symbol is actually "engopen_" and not "engopen".
Finally when I compile the fengdemo.F demo file, I don't get any error. This is organized as a program main and not as mexfunction...
It seem's to me a compiler issue. Is it?
"James Tursa" <email@example.com> wrote in message <firstname.lastname@example.org>... > "Michele Catalano" <email@example.com> wrote in message <firstname.lastname@example.org>... > > Sorry just to observe that the file is not libeng.lib but libeng.so > > > > However, I cannot run the mex file, i get always the above error > > Check your documentation for the *exact* case of the engopen etc calls. The MATLAB API for Fortran actually uses the pre-processor for these and translates them into the actual library name, but this *only* works if the case matches the pre-processor define exactly. Normally in Fortran case doesn't matter, but in this case it does. So maybe engOpen will work, or ENGOPEN, etc. Look at the exact case shown in your doc and make sure your Fortran source code uses that exact case. > > James Tursa