<?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 To avoid declaring twice use in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-Passing-Data-Structure-to-Fortran-DLL/m-p/1119220#M131237</link>
    <description>&lt;P&gt;To avoid declaring twice use the IMPORT statement inside the astract procedure interface.&lt;/P&gt;

&lt;P&gt;Even though you declarations match the compiler sees them as different declarations and hence the mismatched argument type.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2017 07:41:52 GMT</pubDate>
    <dc:creator>Andrew_Smith</dc:creator>
    <dc:date>2017-03-15T07:41:52Z</dc:date>
    <item>
      <title>Problem Passing Data Structure to Fortran DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-Passing-Data-Structure-to-Fortran-DLL/m-p/1119219#M131236</link>
      <description>&lt;P&gt;I'm trying to pass an integer and a data structure to a subroutine in an external DLL but I'm having a compiler problem with the data structure I'm trying to pass. The compiler error message is "&lt;EM&gt;Error #6633: The type of the actual argument differs from the type of the dummy argument&amp;nbsp;[PDATA&lt;/EM&gt;]" but I can't see why. The error message relates to the "CALL pMKL(1,pData)" line.&lt;BR /&gt;
	&lt;BR /&gt;
	​I would also like to know how to avoid declaring my data structure twice.&lt;BR /&gt;
	&lt;BR /&gt;
	Finally, is there an easier way to call a function in&amp;nbsp;a&amp;nbsp;DLL if the&amp;nbsp;DLL and the calling program are both Intel Fortran?&lt;BR /&gt;
	&lt;BR /&gt;
	My test source code is attached. I apologise in advance if this is a dumb question.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 05:08:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-Passing-Data-Structure-to-Fortran-DLL/m-p/1119219#M131236</guid>
      <dc:creator>schulzey</dc:creator>
      <dc:date>2017-03-15T05:08:21Z</dc:date>
    </item>
    <item>
      <title>To avoid declaring twice use</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-Passing-Data-Structure-to-Fortran-DLL/m-p/1119220#M131237</link>
      <description>&lt;P&gt;To avoid declaring twice use the IMPORT statement inside the astract procedure interface.&lt;/P&gt;

&lt;P&gt;Even though you declarations match the compiler sees them as different declarations and hence the mismatched argument type.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 07:41:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-Passing-Data-Structure-to-Fortran-DLL/m-p/1119220#M131237</guid>
      <dc:creator>Andrew_Smith</dc:creator>
      <dc:date>2017-03-15T07:41:52Z</dc:date>
    </item>
    <item>
      <title>Thanks, that fixed it.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-Passing-Data-Structure-to-Fortran-DLL/m-p/1119221#M131238</link>
      <description>&lt;P&gt;Thanks, that fixed it.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 22:47:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-Passing-Data-Structure-to-Fortran-DLL/m-p/1119221#M131238</guid>
      <dc:creator>schulzey</dc:creator>
      <dc:date>2017-03-15T22:47:36Z</dc:date>
    </item>
  </channel>
</rss>

