<?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 Re: Fortran DLL calling another Fortran DLL in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-DLL-calling-another-Fortran-DLL/m-p/823292#M48868</link>
    <description>&lt;DIV&gt;Thanks!! Your hint worked. Ihadlinked the files in a wrong order!!&lt;/DIV&gt;</description>
    <pubDate>Thu, 10 Mar 2005 05:37:21 GMT</pubDate>
    <dc:creator>charlesdayan</dc:creator>
    <dc:date>2005-03-10T05:37:21Z</dc:date>
    <item>
      <title>Fortran DLL calling another Fortran DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-DLL-calling-another-Fortran-DLL/m-p/823290#M48866</link>
      <description>&lt;DIV&gt;It should be simple:the first dll take the array and multiply its elements by 7 and the second one multiply by 10. (The real code is a bit more complex :) )&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;DLL 1:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Subroutine TIMES70(x) &lt;BR /&gt;implicit none&lt;BR /&gt;!DEC$ATTRIBUTES DLLEXPORT :: TIMES70&lt;BR /&gt;!DEC$ATTRIBUTES ALIAS : 'TIMES70' :: TIMES70&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;INTERFACE&lt;BR /&gt; SUBROUTINE TIMES10 (rarray)&lt;BR /&gt; !DEC$ATTRIBUTES DLLIMPORT :: TIMES10&lt;BR /&gt;REAL(8) rarray(3, 7) &lt;BR /&gt; END SUBROUTINE TIMES10&lt;BR /&gt;END INTERFACE&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Real(8) , intent(inout) :: x&lt;BR /&gt; dimension x(3,7)&lt;BR /&gt; integer :: i&lt;BR /&gt; integer :: j&lt;BR /&gt;&lt;BR /&gt;do j=1,7&lt;BR /&gt;do i=1,3&lt;BR /&gt;x(i,j)=x(i,j)*7&lt;BR /&gt;end do&lt;BR /&gt;end do&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;call TIMES10(x) &lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;end subroutine&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;DLL 2:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Subroutine TIMES10(x10) !&lt;BR /&gt;implicit none&lt;BR /&gt;!DEC$ATTRIBUTES DLLEXPORT :: TIMES10&lt;BR /&gt;!DEC$ATTRIBUTES ALIAS : 'TIMES10' :: TIMES10&lt;/DIV&gt;
&lt;DIV&gt;Real(8) , intent(inout) :: x10&lt;BR /&gt;dimension x10(3,7)&lt;BR /&gt;integer :: i&lt;BR /&gt; integer :: j&lt;BR /&gt;&lt;BR /&gt;do j=1,7&lt;BR /&gt;do i=1,3 &lt;BR /&gt;x10(i,j)=x10(i,j)*10&lt;BR /&gt;end do&lt;BR /&gt;end do&lt;/DIV&gt;
&lt;DIV&gt;end subroutine&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Do I need to put the .lib file of the second one into the project of the first? I've tried but didn't work ! I always get this error:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;unresolved external symbol __imp_TIMES10&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;SOME SHORT EXAMPLE SHOULD BE APPRECIATE!!&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Mar 2005 05:48:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-DLL-calling-another-Fortran-DLL/m-p/823290#M48866</guid>
      <dc:creator>charlesdayan</dc:creator>
      <dc:date>2005-03-09T05:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Fortran DLL calling another Fortran DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-DLL-calling-another-Fortran-DLL/m-p/823291#M48867</link>
      <description>You do need to either add the .lib of the second DLL to the first project, or make the second a dependent project of the first.  I don't spot any other issues.</description>
      <pubDate>Wed, 09 Mar 2005 06:01:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-DLL-calling-another-Fortran-DLL/m-p/823291#M48867</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-03-09T06:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Fortran DLL calling another Fortran DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-DLL-calling-another-Fortran-DLL/m-p/823292#M48868</link>
      <description>&lt;DIV&gt;Thanks!! Your hint worked. Ihadlinked the files in a wrong order!!&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Mar 2005 05:37:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-DLL-calling-another-Fortran-DLL/m-p/823292#M48868</guid>
      <dc:creator>charlesdayan</dc:creator>
      <dc:date>2005-03-10T05:37:21Z</dc:date>
    </item>
  </channel>
</rss>

