<?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: How do I add decoration to imported subroutines? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-do-I-add-decoration-to-imported-subroutines/m-p/840860#M58829</link>
    <description>&lt;P&gt;&lt;FONT face="Arial"&gt;I already submitted to premier.intel.com with a test case but my expression of urgency is not appreciated. Hence my post here.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Arial"&gt;I have:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;interface&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt; subroutine AYNUMI ()&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt; !DEC$ ATTRIBUTES STDCALL, REFERENCE, DECORATE :: AYNUMI&lt;BR /&gt; !DEC$ ATTRIBUTES MIXED_STR_LEN_ARG, ALIAS: "AYNUMI" :: AYNUMI&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;  IMPLICIT NONE&lt;BR /&gt; end subroutine&lt;BR /&gt;end interface&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jul 2007 13:07:27 GMT</pubDate>
    <dc:creator>ferrad01</dc:creator>
    <dc:date>2007-07-27T13:07:27Z</dc:date>
    <item>
      <title>How do I add decoration to imported subroutines?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-do-I-add-decoration-to-imported-subroutines/m-p/840858#M58827</link>
      <description>&lt;DIV&gt;&lt;A name="msg_b671986a56c4ba41"&gt;&lt;/A&gt;&lt;FONT class="fixed_width" face="Arial"&gt;Our build machine compiles a Fortran file using v9.1.024. Doing a dumpbin on the object shows that a routine imported from a linked-in library is specified as AYNUMI@0 and is indeed represented as such in the (CVF generated) lib file. &lt;/FONT&gt;&lt;/DIV&gt;&lt;FONT class="fixed_width" face="Courier, Monospaced"&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;FONT face="Arial"&gt;However my machine is on v9.1.037, and a dumpbin on the object created from exactly the same ifort command line shows that object is now looking for AYNUMI, ie. without the decoration. My link therefore fails as the lib indeed exports &lt;/FONT&gt;&lt;A href="mailto:AYNUMI@0"&gt;&lt;FONT face="Arial"&gt;AYNUMI@0&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face="Arial"&gt;. &lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;FONT face="Arial"&gt;Any idea how to add the decoration that was removed presumably as a default during the changes from 24 to 37?&lt;/FONT&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;FONT face="Arial"&gt;I tried various ALIAS'ing in an INTERFACE statement without any luck.&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/FONT&gt;</description>
      <pubDate>Fri, 27 Jul 2007 09:30:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-do-I-add-decoration-to-imported-subroutines/m-p/840858#M58827</guid>
      <dc:creator>ferrad01</dc:creator>
      <dc:date>2007-07-27T09:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add decoration to imported subroutines?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-do-I-add-decoration-to-imported-subroutines/m-p/840859#M58828</link>
      <description>ifort should not have defaulted to stdcall; you should have had to use one of the mechanisms for specifying it. If INTERFACE doesn't work in the calling function according to&lt;BR /&gt;INTERFACE&lt;BR /&gt;SUBROUTINE AYNUMI&lt;BR /&gt;!DEC$ ATTRIBUTES STDCALL, DECORATE::AYNUMI&lt;BR /&gt;END SUBROUTINE AYNUMI&lt;BR /&gt;END INTERFACE&lt;BR /&gt;you might want to submit your case on premier.intel.com. Of course, this mechanism is available only for 32-bit Windows, so it's not ideal to continue to work with mixed CVF/IVF builds.&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Jul 2007 12:31:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-do-I-add-decoration-to-imported-subroutines/m-p/840859#M58828</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2007-07-27T12:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add decoration to imported subroutines?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-do-I-add-decoration-to-imported-subroutines/m-p/840860#M58829</link>
      <description>&lt;P&gt;&lt;FONT face="Arial"&gt;I already submitted to premier.intel.com with a test case but my expression of urgency is not appreciated. Hence my post here.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Arial"&gt;I have:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;interface&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt; subroutine AYNUMI ()&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt; !DEC$ ATTRIBUTES STDCALL, REFERENCE, DECORATE :: AYNUMI&lt;BR /&gt; !DEC$ ATTRIBUTES MIXED_STR_LEN_ARG, ALIAS: "AYNUMI" :: AYNUMI&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;  IMPLICIT NONE&lt;BR /&gt; end subroutine&lt;BR /&gt;end interface&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2007 13:07:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-do-I-add-decoration-to-imported-subroutines/m-p/840860#M58829</guid>
      <dc:creator>ferrad01</dc:creator>
      <dc:date>2007-07-27T13:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add decoration to imported subroutines?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-do-I-add-decoration-to-imported-subroutines/m-p/840861#M58830</link>
      <description>This is weird. To fix it, take off the () after "subroutine AYNUMI". I'll make sure the developers know about this. What's your Premier Support issue number?&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Jul 2007 13:40:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-do-I-add-decoration-to-imported-subroutines/m-p/840861#M58830</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-07-27T13:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add decoration to imported subroutines?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-do-I-add-decoration-to-imported-subroutines/m-p/840862#M58831</link>
      <description>Also, please be aware that if the CVF-compiled routine makes ANY calls to the language support run-time library, you cannot use it with Intel Fortran and must recompile it.&lt;BR /&gt;&lt;BR /&gt;The () can be omitted if there are no arguments to the subroutine.&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Jul 2007 13:42:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-do-I-add-decoration-to-imported-subroutines/m-p/840862#M58831</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-07-27T13:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add decoration to imported subroutines?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-do-I-add-decoration-to-imported-subroutines/m-p/840863#M58832</link>
      <description>&lt;P&gt;Excellent it worked by removing the () !!!&lt;/P&gt;
&lt;P&gt;Many thanks Steve. I guess something changed between 24 and 37.&lt;/P&gt;
&lt;P&gt;PS. The premier support number is: 443668&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2007 14:00:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-do-I-add-decoration-to-imported-subroutines/m-p/840863#M58832</guid>
      <dc:creator>ferrad01</dc:creator>
      <dc:date>2007-07-27T14:00:04Z</dc:date>
    </item>
  </channel>
</rss>

