<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic (UN)Compatibility with MatLab DD Link for old versions such as 7.1 in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/UN-Compatibility-with-MatLab-DD-Link-for-old-versions-such-as-7/m-p/778427#M26307</link>
    <description>I was compiling a fortran program with the Digital Fortran 6.6, and using the DDE link with MatLab engine. This was working great.&lt;BR /&gt;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 !&lt;BR /&gt;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 :&lt;BR /&gt;&lt;P&gt;INTERFACE&lt;/P&gt;&lt;P&gt;INTEGER FUNCTION MATOPEN()&lt;/P&gt;&lt;P&gt;! return a pointer (File handle, or 0 if the open fails)&lt;/P&gt;&lt;P&gt;$ATTRIBUTES C,VARYING,DLLIMPORT,ALIAS:'_matOpen'::MATOPEN&lt;/P&gt;&lt;P&gt;END FUNCTION MATOPEN&lt;/P&gt;&lt;P&gt;END INTERFACE&lt;/P&gt;&lt;P&gt;It seems the Fortran Digital was less picky about lower/uppercase of symbols than Fortran Intel does.&lt;BR /&gt;This way I could solve the linking problem. Got an exe and coul run it.&lt;BR /&gt;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.&lt;BR /&gt;Is there a way to solve this ? or Intel v11.1 and MatLab 7.1 are definitely incompatible ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 24 Nov 2010 12:51:18 GMT</pubDate>
    <dc:creator>pom34</dc:creator>
    <dc:date>2010-11-24T12:51:18Z</dc:date>
    <item>
      <title>(UN)Compatibility with MatLab DD Link for old versions such as 7.1</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/UN-Compatibility-with-MatLab-DD-Link-for-old-versions-such-as-7/m-p/778427#M26307</link>
      <description>I was compiling a fortran program with the Digital Fortran 6.6, and using the DDE link with MatLab engine. This was working great.&lt;BR /&gt;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 !&lt;BR /&gt;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 :&lt;BR /&gt;&lt;P&gt;INTERFACE&lt;/P&gt;&lt;P&gt;INTEGER FUNCTION MATOPEN()&lt;/P&gt;&lt;P&gt;! return a pointer (File handle, or 0 if the open fails)&lt;/P&gt;&lt;P&gt;$ATTRIBUTES C,VARYING,DLLIMPORT,ALIAS:'_matOpen'::MATOPEN&lt;/P&gt;&lt;P&gt;END FUNCTION MATOPEN&lt;/P&gt;&lt;P&gt;END INTERFACE&lt;/P&gt;&lt;P&gt;It seems the Fortran Digital was less picky about lower/uppercase of symbols than Fortran Intel does.&lt;BR /&gt;This way I could solve the linking problem. Got an exe and coul run it.&lt;BR /&gt;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.&lt;BR /&gt;Is there a way to solve this ? or Intel v11.1 and MatLab 7.1 are definitely incompatible ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2010 12:51:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/UN-Compatibility-with-MatLab-DD-Link-for-old-versions-such-as-7/m-p/778427#M26307</guid>
      <dc:creator>pom34</dc:creator>
      <dc:date>2010-11-24T12:51:18Z</dc:date>
    </item>
    <item>
      <title>(UN)Compatibility with MatLab DD Link for old versions such as</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/UN-Compatibility-with-MatLab-DD-Link-for-old-versions-such-as-7/m-p/778428#M26308</link>
      <description>It is not true that the Intel compiler is more "picky" about name case than Digital Visual Fortran - they are the same in that regard. If your version of Matlab was built for use with DVF, you probably need a new one for compatibility with any other Fortran compiler, including Intel's. I expect that Matlab provided a module for you to use with declarations of the routines, which you could not use with the Intel compiler.&lt;BR /&gt;&lt;BR /&gt;Please contact Mathworks support for help in determining which version of Matlab is compatible with Intel Visual Fortran 11.1.</description>
      <pubDate>Wed, 24 Nov 2010 14:07:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/UN-Compatibility-with-MatLab-DD-Link-for-old-versions-such-as-7/m-p/778428#M26308</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-11-24T14:07:39Z</dc:date>
    </item>
    <item>
      <title>(UN)Compatibility with MatLab DD Link for old versions such as</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/UN-Compatibility-with-MatLab-DD-Link-for-old-versions-such-as-7/m-p/778429#M26309</link>
      <description>Dear Steve,&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.mathworks.com/support/compilers/R2009b/" target="_blank"&gt;http://www.mathworks.com/support/compilers/R2009b/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Nov 2010 15:15:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/UN-Compatibility-with-MatLab-DD-Link-for-old-versions-such-as-7/m-p/778429#M26309</guid>
      <dc:creator>pom34</dc:creator>
      <dc:date>2010-11-24T15:15:27Z</dc:date>
    </item>
    <item>
      <title>(UN)Compatibility with MatLab DD Link for old versions such as</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/UN-Compatibility-with-MatLab-DD-Link-for-old-versions-such-as-7/m-p/778430#M26310</link>
      <description>Continued:&lt;BR /&gt;&lt;BR /&gt;this is the compatibility list for Fortran compilers for MatLab 7.1:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.mathworks.com/support/compilers/1601_71.html" target="_blank"&gt;http://www.mathworks.com/support/compilers/1601_71.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;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.* ?&lt;BR /&gt;&lt;BR /&gt;Best regards.</description>
      <pubDate>Wed, 24 Nov 2010 15:20:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/UN-Compatibility-with-MatLab-DD-Link-for-old-versions-such-as-7/m-p/778430#M26310</guid>
      <dc:creator>pom34</dc:creator>
      <dc:date>2010-11-24T15:20:22Z</dc:date>
    </item>
    <item>
      <title>(UN)Compatibility with MatLab DD Link for old versions such as</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/UN-Compatibility-with-MatLab-DD-Link-for-old-versions-such-as-7/m-p/778431#M26311</link>
      <description>This should work then. Is it possible that you had some compiler option set with DVF that you did not use with Intel Fortran? For the routine you mentiioned, you don't need the ATTRIBUTES C - it is forcing pass by value. Try this:&lt;BR /&gt;&lt;BR /&gt;!DEC$ ATTRIBUTES DLLIMPORT,DECORATE,ALIAS:'matOpen'::MATOPEN</description>
      <pubDate>Wed, 24 Nov 2010 15:49:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/UN-Compatibility-with-MatLab-DD-Link-for-old-versions-such-as-7/m-p/778431#M26311</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-11-24T15:49:47Z</dc:date>
    </item>
  </channel>
</rss>

