- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am now using the Intel Fortran compiler 11.1 and this is not working any more. I have been fighting with this for several days now and need some help from experts !
First I had external unresolved messages when linking. I had a look inside the MatLab dll and lib used and have seen a problem with uppercase of symbol names. I then added INTERFACES for all the used MatLab functions with code such as :
INTERFACE
INTEGER FUNCTION MATOPEN()
! return a pointer (File handle, or 0 if the open fails)
$ATTRIBUTES C,VARYING,DLLIMPORT,ALIAS:'_matOpen'::MATOPEN
END FUNCTION MATOPEN
END INTERFACE
It seems the Fortran Digital was less picky about lower/uppercase of symbols than Fortran Intel does.
This way I could solve the linking problem. Got an exe and coul run it.
I can even, using the obtained program, open and close the MatLab engine using the corresponding command of the DDE link, BUT I AM UNABLE TO PASS VARIABLES. I get an unhandled win32 exception error and my program stops for exemple with functions such as engEvalString, or mxCopyReal8ToPtr. For some example you can search for the fengdemo.F code example.
Is there a way to solve this ? or Intel v11.1 and MatLab 7.1 are definitely incompatible ?
Thanks
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please contact Mathworks support for help in determining which version of Matlab is compatible with Intel Visual Fortran 11.1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your answer. Mathworks indeed indicates some combination of compatibility between some Fortran compilers and some versions of the MatLab engine, for eg at:
http://www.mathworks.com/support/compilers/R2009b/
But I guess they just list some of them that they garanty and that they have tested. But I guess this is not an exhaustive list. Fortran Intel 10.* or 11.* and MatLab 7.1 is not garantied in this list (for MatLab 7.1 they garanty compatibility with Fortran Digital 5 or 6), but I was hopping to be able to go through. I guess I am not very far for managing, since I could solve the external unresolved problem with the INTERFACE definition and ALIAS keyword, and I can open and close MatLab from my compiled fortran code. I "just" need now to be able to exchange variables. Is there any idea to solve this? I am wondering if this is due to a different coding of integers, real and characters between the fortran code and the MatLab dll.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
this is the compatibility list for Fortran compilers for MatLab 7.1:
http://www.mathworks.com/support/compilers/1601_71.html
It seems from this page that MatLab 7.1 was compiled with Microsoft Visual C/C++ .NET 2003 (7.1) Professional Edition. Is there any pb to use it with stuff compiled with Intel 10.* or 11.* ?
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
!DEC$ ATTRIBUTES DLLIMPORT,DECORATE,ALIAS:'matOpen'::MATOPEN

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page