<?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: Using Derived Types in Common Blocks in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Using-Derived-Types-in-Common-Blocks/m-p/933225#M15301</link>
    <description>I'd bet a quarter that you have specified initial values for one or more COMMON variables in the INCLUDE file.  The Fortran language does not allow a COMMON block to be initialized in multiple program units, and the Microsoft linker doesn't like it either!&lt;BR /&gt;&lt;BR /&gt;Solution - take the initialization out of the INCLUDE.  Add a BLOCK DATA subprogram which INCLUDEs the definition of the COMMON and then has the initialization in DATA statements.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
    <pubDate>Fri, 29 Dec 2000 01:07:12 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2000-12-29T01:07:12Z</dc:date>
    <item>
      <title>Using Derived Types in Common Blocks</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-Derived-Types-in-Common-Blocks/m-p/933224#M15300</link>
      <description>I am having problems using a derived data type as an object in a named common block.  I placed the derived type and the common statement in an include file and tried to use the include file in three subroutine.  The linker gives error 2005, followed by 1169 stating that the named block was already defined.  Is there a way to do this?  Thank you.</description>
      <pubDate>Thu, 28 Dec 2000 09:11:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-Derived-Types-in-Common-Blocks/m-p/933224#M15300</guid>
      <dc:creator>bbeyer</dc:creator>
      <dc:date>2000-12-28T09:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Derived Types in Common Blocks</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-Derived-Types-in-Common-Blocks/m-p/933225#M15301</link>
      <description>I'd bet a quarter that you have specified initial values for one or more COMMON variables in the INCLUDE file.  The Fortran language does not allow a COMMON block to be initialized in multiple program units, and the Microsoft linker doesn't like it either!&lt;BR /&gt;&lt;BR /&gt;Solution - take the initialization out of the INCLUDE.  Add a BLOCK DATA subprogram which INCLUDEs the definition of the COMMON and then has the initialization in DATA statements.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 29 Dec 2000 01:07:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-Derived-Types-in-Common-Blocks/m-p/933225#M15301</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2000-12-29T01:07:12Z</dc:date>
    </item>
  </channel>
</rss>

