<?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: Dumb Question #3 Module dependencies within a file in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dumb-Question-3-Module-dependencies-within-a-file/m-p/812076#M43282</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Keith,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Yes, this is probably what is happening.I suppose that for simple situationsthe dependency checker will make sure that the sequence of compilation is correct, but in more complex situationsthere may be no (or hard to determine?) proper sequence. Under these circumstances the repeated build can help out.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Walter&lt;/DIV&gt;&lt;P&gt;Message Edited by wkramer on &lt;SPAN class="date_text"&gt;12-05-2004&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:16 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Dec 2004 03:11:50 GMT</pubDate>
    <dc:creator>wkramer</dc:creator>
    <dc:date>2004-12-06T03:11:50Z</dc:date>
    <item>
      <title>Dumb Question #3 Module dependencies within a file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dumb-Question-3-Module-dependencies-within-a-file/m-p/812072#M43278</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;If I have two subroutines in the same file, A and B, A appearing first and B calling A, there seems to be no problem resolving B's reference to A. If I have the same situation, but A and B are modules, and B uses A, B cannot find A. This is more than a minor annoyance, because even if A and B are related in the program, I need to find another file in which I can "hide" B, even though it has no logical relationship to anything else in that file. Is this a bug or a "feature"? If it is a feature, what is the rationale behind it?&lt;/DIV&gt;
&lt;DIV&gt;Regards,&lt;/DIV&gt;
&lt;DIV&gt;Keith&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 05 Dec 2004 08:18:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Dumb-Question-3-Module-dependencies-within-a-file/m-p/812072#M43278</guid>
      <dc:creator>keefer</dc:creator>
      <dc:date>2004-12-05T08:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dumb Question #3 Module dependencies within a file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dumb-Question-3-Module-dependencies-within-a-file/m-p/812073#M43279</link>
      <description>If you just have two subroutines, the linker is what needs to resolve the reference, and once it has loaded the object, it has all the symbols.  Modules are processed by the compiler and the standard says that a module has to be "available" when you USE it.  Forward module references in a file are not required to work, and don't in most compilers.</description>
      <pubDate>Sun, 05 Dec 2004 09:27:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Dumb-Question-3-Module-dependencies-within-a-file/m-p/812073#M43279</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2004-12-05T09:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dumb Question #3 Module dependencies within a file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dumb-Question-3-Module-dependencies-within-a-file/m-p/812074#M43280</link>
      <description>&lt;DIV&gt;I guess I misunderstand the question, but I believe I do this all the time. I.e. have function B in modB refer to function A in modA. I sometimes have to build (not a complete rebuild) such applications twice in a row because modA.mod may not exist the first time around, but it seems to work.&lt;/DIV&gt;
&lt;DIV&gt;But then again, I probably misunderstood the question.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Walter&lt;/DIV&gt;</description>
      <pubDate>Sun, 05 Dec 2004 17:04:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Dumb-Question-3-Module-dependencies-within-a-file/m-p/812074#M43280</guid>
      <dc:creator>wkramer</dc:creator>
      <dc:date>2004-12-05T17:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dumb Question #3 Module dependencies within a file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dumb-Question-3-Module-dependencies-within-a-file/m-p/812075#M43281</link>
      <description>&lt;DIV&gt;Walter,&lt;/DIV&gt;
&lt;DIV&gt;I think that you have found a "workaround" to my issue. I was assuming that a .mod file would be created by the compiler for A and then be accessible to B. This is apparently not the case. Also, I think Steve misunderstood that B was making a backward, not a forward reference to A. What may be happening in the case that you describe is that the .mod for A is created the first time you compile, but the compilation of B crashed. On the second compilation, a rebuild, A was ignored because a current version already existed and this time B found it.&lt;/DIV&gt;
&lt;DIV&gt;Thanks to both of you for your replies.&lt;/DIV&gt;
&lt;DIV&gt;Regards,&lt;/DIV&gt;
&lt;DIV&gt;Keith&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Dec 2004 01:13:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Dumb-Question-3-Module-dependencies-within-a-file/m-p/812075#M43281</guid>
      <dc:creator>keefer</dc:creator>
      <dc:date>2004-12-06T01:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dumb Question #3 Module dependencies within a file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dumb-Question-3-Module-dependencies-within-a-file/m-p/812076#M43282</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Keith,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Yes, this is probably what is happening.I suppose that for simple situationsthe dependency checker will make sure that the sequence of compilation is correct, but in more complex situationsthere may be no (or hard to determine?) proper sequence. Under these circumstances the repeated build can help out.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Walter&lt;/DIV&gt;&lt;P&gt;Message Edited by wkramer on &lt;SPAN class="date_text"&gt;12-05-2004&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:16 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2004 03:11:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Dumb-Question-3-Module-dependencies-within-a-file/m-p/812076#M43282</guid>
      <dc:creator>wkramer</dc:creator>
      <dc:date>2004-12-06T03:11:50Z</dc:date>
    </item>
  </channel>
</rss>

