<?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 Sharing Data between Fortran programs in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Sharing-Data-between-Fortran-programs/m-p/746588#M2302</link>
    <description>hi&lt;BR /&gt;&lt;BR /&gt;This works but I am having problems with connecting a C program to the shared memory module.&lt;BR /&gt;I suspect it is something to do withthe build options.&lt;BR /&gt;I have a C version of the datastructure Global_Commons.&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;module Global_Commons&lt;/P&gt;&lt;P&gt;implicit none&lt;/P&gt;&lt;P&gt;INTEGER*4 :: FIRST = 678&lt;/P&gt;&lt;P&gt;INTEGER*4 :: LAST&lt;/P&gt;&lt;P&gt;COMMON /TSKCOM/ FIRST&lt;/P&gt;&lt;P&gt;COMMON /TSKCOM/ LAST&lt;/P&gt;&lt;P&gt;VOLATILE :: /TSKCOM/&lt;/P&gt;&lt;P&gt;!DEC$ ATTRIBUTES DLLEXPORT :: /TSKCOM/&lt;/P&gt;&lt;P&gt;end module Global_Commons&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;program Console1&lt;/P&gt;&lt;P&gt;use Global_Commons&lt;/P&gt;&lt;P&gt;implicit none&lt;/P&gt;&lt;P&gt;CHARACTER*4 RESPONDER&lt;/P&gt;&lt;P&gt;FIRST=1&lt;/P&gt;&lt;P&gt;LAST=2&lt;/P&gt;&lt;P&gt;Write (*, "('First and Last begin as : ',I5,I5)") FIRST, LAST&lt;/P&gt;&lt;P&gt;RESPONDER = '0000'&lt;/P&gt;&lt;P&gt;do while (RESPONDER .ne. '9999')&lt;/P&gt;&lt;P&gt;write(*,"('press return to continue - 9999 to finish')")&lt;/P&gt;&lt;P&gt;read (*,"(A)") RESPONDER&lt;/P&gt;&lt;P&gt;write (*,"('Now First and Last are = ',I5,I5)") FIRST, LAST&lt;/P&gt;&lt;P&gt;write (*,"('enter new value for FIRST ')")&lt;/P&gt;&lt;P&gt;read (*,"(I8)") FIRST&lt;/P&gt;&lt;P&gt;write (*,"('enter new value for LAST ')")&lt;/P&gt;&lt;P&gt;read (*,"(I8)") LAST&lt;/P&gt;&lt;P&gt;write (*,"('Now First and Last are = ',I5,I5)") FIRST, LAST&lt;/P&gt;&lt;P&gt;enddo &lt;/P&gt;&lt;P&gt;end program Console1&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;program Console2&lt;/P&gt;&lt;P&gt;use Global_Commons&lt;/P&gt;&lt;P&gt;implicit none&lt;/P&gt;&lt;P&gt;CHARACTER*4 RESPONDER&lt;/P&gt;&lt;P&gt;Write (*,"('First and Last begin as : ',I5,I5)") FIRST, LAST&lt;/P&gt;&lt;P&gt;RESPONDER = '0000'&lt;/P&gt;&lt;P&gt;do while (RESPONDER .ne. '9999')&lt;/P&gt;&lt;P&gt;write(*,"('press return to continue - 9999 to finish')")&lt;/P&gt;&lt;P&gt;read (*,"(A)") RESPONDER&lt;/P&gt;&lt;P&gt;write (*,"('Now First and Last are = ',I5,I5)") FIRST, LAST&lt;/P&gt;&lt;P&gt;write (*,"('enter new value for FIRST ')")&lt;/P&gt;&lt;P&gt;read (*,"(I8)") FIRST&lt;/P&gt;&lt;P&gt;write (*,"('enter new value for LAST ')")&lt;/P&gt;&lt;P&gt;read (*,"(I8)") LAST&lt;/P&gt;&lt;P&gt;write (*,"('Now First and Last are = ',I5,I5)") FIRST, LAST&lt;/P&gt;&lt;P&gt;enddo &lt;/P&gt;&lt;P&gt;END&lt;BR /&gt;&lt;BR /&gt;the build file looks like this&lt;/P&gt;&lt;P&gt;rem build Global_Commons&lt;/P&gt;&lt;P&gt;ifort /nologo /dll Global_Commons.f90 /link /section:.data,RWS&lt;/P&gt;&lt;P&gt;rem build Console1&lt;/P&gt;&lt;P&gt;ifort /nologo /libs:dll Console1.f90 Global_Commons.lib&lt;/P&gt;&lt;P&gt;rem build Console2&lt;/P&gt;&lt;P&gt;ifort /nologo /libs:dll Console2.f90 Global_Commons.lib&lt;/P&gt;&lt;P&gt;rem "all done"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any ideas on getting the C routine to share the Fortran shared global module?&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;Peter.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2011 12:53:12 GMT</pubDate>
    <dc:creator>prandf</dc:creator>
    <dc:date>2011-09-27T12:53:12Z</dc:date>
    <item>
      <title>Sharing Data between Fortran programs</title>
      <link>https://community.intel.com/t5/Software-Archive/Sharing-Data-between-Fortran-programs/m-p/746587#M2301</link>
      <description>&lt;SPAN class="sectionBodyText"&gt;Hi there,&lt;BR /&gt;I have been unsuccessfully trying to use the MODULEstatement and a DLL to allow sharing of data.&lt;BR /&gt;&lt;BR /&gt;First I set up a dll contining this code :-&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt;&lt;B&gt;module&lt;/B&gt; Global_Commons&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt;&lt;B&gt;implicit none&lt;/B&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt;&lt;B&gt;INTEGER*4&lt;/B&gt; FIRST, LAST&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt;&lt;B&gt;COMMON&lt;/B&gt; /TSKCOM/ FIRST&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt;&lt;B&gt;COMMON&lt;/B&gt; /TSKCOM/ LAST&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt;&lt;B&gt;VOLATILE&lt;/B&gt; :: /TSKCOM/&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt;&lt;B&gt;end module&lt;/B&gt; Global_Commons&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;P class="sectionBodyText"&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt;I use one program to set values in the new TSKCOM&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;P class="sectionBodyText"&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt;&lt;B&gt;program&lt;/B&gt; Console1&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt; &lt;B&gt;use&lt;/B&gt; Global_Commons&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt; &lt;B&gt;implicit none&lt;/B&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt; &lt;B&gt;CHARACTER&lt;/B&gt;*4 RESPONDER&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt; FIRST=1&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt; LAST=2&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt; &lt;B&gt;Write&lt;/B&gt; (*,100) FIRST, LAST&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt; 100 &lt;B&gt;FORMAT&lt;/B&gt; (" Written to common FIRST=",I5," LAST=",I5)&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt; &lt;B&gt;read&lt;/B&gt; (*,200) RESPONDER&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt; 200 &lt;B&gt;FORMAT&lt;/B&gt; (A)&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt; &lt;B&gt;end&lt;/B&gt; &lt;B&gt;program&lt;/B&gt; Console1&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;P class="sectionBodyText"&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt;and another to read the new TSKCOM&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;P class="sectionBodyText"&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt; &lt;B&gt;program&lt;/B&gt; Console2&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt; &lt;B&gt;use&lt;/B&gt; Global_Commons&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt; &lt;B&gt;implicit none&lt;/B&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt; &lt;B&gt;CHARACTER&lt;/B&gt;*4 RESPONDER&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt; &lt;B&gt;Write&lt;/B&gt; (*,100) FIRST, LAST&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt; 100 &lt;B&gt;FORMAT&lt;/B&gt; (" In common FIRST=",I5," LAST=",I5)&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt; &lt;B&gt;read&lt;/B&gt; (*,200) RESPONDER&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt; 200 &lt;B&gt;FORMAT&lt;/B&gt; (A)&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt; &lt;B&gt;END&lt;/B&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;P class="sectionBodyText"&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;B&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;SPAN class="sectionBodyText" style="font-size: small;"&gt;The second program displays both values as zero.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;P class="sectionBodyText"&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: " calibri=""&gt;&lt;P class="sectionBodyText"&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN class="sectionBodyText"&gt;Could you possibly explain what I have done wrong?&lt;/SPAN&gt;</description>
      <pubDate>Tue, 27 Sep 2011 05:56:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Sharing-Data-between-Fortran-programs/m-p/746587#M2301</guid>
      <dc:creator>Tote_Licences</dc:creator>
      <dc:date>2011-09-27T05:56:07Z</dc:date>
    </item>
    <item>
      <title>Sharing Data between Fortran programs</title>
      <link>https://community.intel.com/t5/Software-Archive/Sharing-Data-between-Fortran-programs/m-p/746588#M2302</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;This works but I am having problems with connecting a C program to the shared memory module.&lt;BR /&gt;I suspect it is something to do withthe build options.&lt;BR /&gt;I have a C version of the datastructure Global_Commons.&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;module Global_Commons&lt;/P&gt;&lt;P&gt;implicit none&lt;/P&gt;&lt;P&gt;INTEGER*4 :: FIRST = 678&lt;/P&gt;&lt;P&gt;INTEGER*4 :: LAST&lt;/P&gt;&lt;P&gt;COMMON /TSKCOM/ FIRST&lt;/P&gt;&lt;P&gt;COMMON /TSKCOM/ LAST&lt;/P&gt;&lt;P&gt;VOLATILE :: /TSKCOM/&lt;/P&gt;&lt;P&gt;!DEC$ ATTRIBUTES DLLEXPORT :: /TSKCOM/&lt;/P&gt;&lt;P&gt;end module Global_Commons&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;program Console1&lt;/P&gt;&lt;P&gt;use Global_Commons&lt;/P&gt;&lt;P&gt;implicit none&lt;/P&gt;&lt;P&gt;CHARACTER*4 RESPONDER&lt;/P&gt;&lt;P&gt;FIRST=1&lt;/P&gt;&lt;P&gt;LAST=2&lt;/P&gt;&lt;P&gt;Write (*, "('First and Last begin as : ',I5,I5)") FIRST, LAST&lt;/P&gt;&lt;P&gt;RESPONDER = '0000'&lt;/P&gt;&lt;P&gt;do while (RESPONDER .ne. '9999')&lt;/P&gt;&lt;P&gt;write(*,"('press return to continue - 9999 to finish')")&lt;/P&gt;&lt;P&gt;read (*,"(A)") RESPONDER&lt;/P&gt;&lt;P&gt;write (*,"('Now First and Last are = ',I5,I5)") FIRST, LAST&lt;/P&gt;&lt;P&gt;write (*,"('enter new value for FIRST ')")&lt;/P&gt;&lt;P&gt;read (*,"(I8)") FIRST&lt;/P&gt;&lt;P&gt;write (*,"('enter new value for LAST ')")&lt;/P&gt;&lt;P&gt;read (*,"(I8)") LAST&lt;/P&gt;&lt;P&gt;write (*,"('Now First and Last are = ',I5,I5)") FIRST, LAST&lt;/P&gt;&lt;P&gt;enddo &lt;/P&gt;&lt;P&gt;end program Console1&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;program Console2&lt;/P&gt;&lt;P&gt;use Global_Commons&lt;/P&gt;&lt;P&gt;implicit none&lt;/P&gt;&lt;P&gt;CHARACTER*4 RESPONDER&lt;/P&gt;&lt;P&gt;Write (*,"('First and Last begin as : ',I5,I5)") FIRST, LAST&lt;/P&gt;&lt;P&gt;RESPONDER = '0000'&lt;/P&gt;&lt;P&gt;do while (RESPONDER .ne. '9999')&lt;/P&gt;&lt;P&gt;write(*,"('press return to continue - 9999 to finish')")&lt;/P&gt;&lt;P&gt;read (*,"(A)") RESPONDER&lt;/P&gt;&lt;P&gt;write (*,"('Now First and Last are = ',I5,I5)") FIRST, LAST&lt;/P&gt;&lt;P&gt;write (*,"('enter new value for FIRST ')")&lt;/P&gt;&lt;P&gt;read (*,"(I8)") FIRST&lt;/P&gt;&lt;P&gt;write (*,"('enter new value for LAST ')")&lt;/P&gt;&lt;P&gt;read (*,"(I8)") LAST&lt;/P&gt;&lt;P&gt;write (*,"('Now First and Last are = ',I5,I5)") FIRST, LAST&lt;/P&gt;&lt;P&gt;enddo &lt;/P&gt;&lt;P&gt;END&lt;BR /&gt;&lt;BR /&gt;the build file looks like this&lt;/P&gt;&lt;P&gt;rem build Global_Commons&lt;/P&gt;&lt;P&gt;ifort /nologo /dll Global_Commons.f90 /link /section:.data,RWS&lt;/P&gt;&lt;P&gt;rem build Console1&lt;/P&gt;&lt;P&gt;ifort /nologo /libs:dll Console1.f90 Global_Commons.lib&lt;/P&gt;&lt;P&gt;rem build Console2&lt;/P&gt;&lt;P&gt;ifort /nologo /libs:dll Console2.f90 Global_Commons.lib&lt;/P&gt;&lt;P&gt;rem "all done"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any ideas on getting the C routine to share the Fortran shared global module?&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;Peter.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2011 12:53:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Sharing-Data-between-Fortran-programs/m-p/746588#M2302</guid>
      <dc:creator>prandf</dc:creator>
      <dc:date>2011-09-27T12:53:12Z</dc:date>
    </item>
  </channel>
</rss>

