<?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 Importing module from a DLL in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Importing-module-from-a-DLL/m-p/777686#M25937</link>
    <description>the declarations:&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;character(len=10) function InstSP(Ocelula)&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;type (CCelula), intent (inout) :: Ocelula&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;    Real*8 :: hl&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;       &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;    hl = getHfEq(Ocelula)&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;...&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;end functionInstSP&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;the function getHfEq that's in the DLL:&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;DIV id="_mcePaste"&gt;Real*8 Function getHfEq (Ocelula)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;    !DEC$ ATTRIBUTES DLLEXPORT :: getHfEq&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;    type (CCelula), intent (inout) :: Ocelula&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;...&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;end function getHfEq&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;and the type CCelula:&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;DIV id="_mcePaste"&gt;type CCelula&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;private&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;integer :: id&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;type(CBolha) :: OBolha&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;type(CPistao) :: OPistao&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;type(CFilme) :: OFilme&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;type(CAdmin) :: OAdmin&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;type(CTrecho), pointer :: OTrecho&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;real*8 UM&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;end type&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;the error it's associated with this type. I don't know what's going on&lt;/DIV&gt;</description>
    <pubDate>Wed, 11 Apr 2012 11:59:27 GMT</pubDate>
    <dc:creator>rvitor2004</dc:creator>
    <dc:date>2012-04-11T11:59:27Z</dc:date>
    <item>
      <title>Importing module from a DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Importing-module-from-a-DLL/m-p/777683#M25934</link>
      <description>I'm trying to import a subroutine from a modulecontained in a DLL but it's appearing the error:&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Error	1	 error #6633: The type of the actual argument differs from the type of the dummy argument. &lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I already check the argument and it's the same type that is espected.&lt;/DIV&gt;&lt;DIV&gt;What could be?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Apr 2012 13:28:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Importing-module-from-a-DLL/m-p/777683#M25934</guid>
      <dc:creator>rvitor2004</dc:creator>
      <dc:date>2012-04-04T13:28:36Z</dc:date>
    </item>
    <item>
      <title>Importing module from a DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Importing-module-from-a-DLL/m-p/777684#M25935</link>
      <description>It is very likely that the compiler is correct that the types do not match. Without seeing the sources, that's the best I can tell you. I will comment that the subroutine is in a DLL is not important - I assume you have a USE to name a module that in the DLL, so the compiler looks for a .mod file by that name. It might be that if the compiler is not seeing the correct .mod file - it looks in the same place as for INCLUDE files - then you might get unexpected issues.</description>
      <pubDate>Wed, 04 Apr 2012 13:37:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Importing-module-from-a-DLL/m-p/777684#M25935</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2012-04-04T13:37:14Z</dc:date>
    </item>
    <item>
      <title>Importing module from a DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Importing-module-from-a-DLL/m-p/777685#M25936</link>
      <description>There are some combinations of attributes for which actual subprogram arguments may reasonably be expected to be identical to the type of the dummy argument, but are not considered so by the Fortran compiler.&lt;BR /&gt;&lt;BR /&gt;Please show the declarations of the actual arguments and the dummy arguments of the subprogram whose invocation gave you the error.</description>
      <pubDate>Wed, 04 Apr 2012 13:41:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Importing-module-from-a-DLL/m-p/777685#M25936</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2012-04-04T13:41:12Z</dc:date>
    </item>
    <item>
      <title>Importing module from a DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Importing-module-from-a-DLL/m-p/777686#M25937</link>
      <description>the declarations:&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;character(len=10) function InstSP(Ocelula)&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;type (CCelula), intent (inout) :: Ocelula&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;    Real*8 :: hl&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;       &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;    hl = getHfEq(Ocelula)&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;...&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;end functionInstSP&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;the function getHfEq that's in the DLL:&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;DIV id="_mcePaste"&gt;Real*8 Function getHfEq (Ocelula)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;    !DEC$ ATTRIBUTES DLLEXPORT :: getHfEq&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;    type (CCelula), intent (inout) :: Ocelula&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;...&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;end function getHfEq&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;and the type CCelula:&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;DIV id="_mcePaste"&gt;type CCelula&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;private&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;integer :: id&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;type(CBolha) :: OBolha&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;type(CPistao) :: OPistao&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;type(CFilme) :: OFilme&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;type(CAdmin) :: OAdmin&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;type(CTrecho), pointer :: OTrecho&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;real*8 UM&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;end type&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;the error it's associated with this type. I don't know what's going on&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Apr 2012 11:59:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Importing-module-from-a-DLL/m-p/777686#M25937</guid>
      <dc:creator>rvitor2004</dc:creator>
      <dc:date>2012-04-11T11:59:27Z</dc:date>
    </item>
    <item>
      <title>Importing module from a DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Importing-module-from-a-DLL/m-p/777687#M25938</link>
      <description>The pieces of code that you show do not tell much. It is not even clear which piece belongs to which subprogram source.&lt;BR /&gt;&lt;BR /&gt;You wrote about a 'subroutine', but it appears that it is a function in the DLL that is being used. Where is the type and interface declaration for the function used in&lt;BR /&gt;&lt;BR /&gt; hl = getHfEq(Ocelula)&lt;BR /&gt;&lt;BR /&gt;That information cannot match the DLLExport directive, since here we are talking about a DLL Import.&lt;BR /&gt;&lt;BR /&gt;Not enough information, context quite unclear. Sorry.</description>
      <pubDate>Wed, 11 Apr 2012 14:58:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Importing-module-from-a-DLL/m-p/777687#M25938</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2012-04-11T14:58:03Z</dc:date>
    </item>
    <item>
      <title>Importing module from a DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Importing-module-from-a-DLL/m-p/777688#M25939</link>
      <description>One possibility is that you are not using the *SAME* declaration of &lt;STRONG&gt;type CCelula &lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Just because the name is the same, or the set of fields is the same, does not make the type "the same", if you have the declaration in two different places. You need more.&lt;BR /&gt;&lt;BR /&gt;Per the Fortran standard, "Two data entities have the same type if they are declared with reference to the same derived-type definition. Data entities also have the same type if they are declared with reference to different derived-type definitions that specify the same type name, all have the SEQUENCE attribute or all have the BIND attibute, have no components with PRIVATE accessiblity, and have type parameters and components that agree in order, name, and attributes. Otherwise, they are of different derived types."&lt;BR /&gt;&lt;BR /&gt; -- Lorri&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Apr 2012 17:32:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Importing-module-from-a-DLL/m-p/777688#M25939</guid>
      <dc:creator>Lorri_M_Intel</dc:creator>
      <dc:date>2012-04-11T17:32:18Z</dc:date>
    </item>
  </channel>
</rss>

