<?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 !DEC$ ATTRIBUTES DLLIMPORT, in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/dllimport-directive-to-remove-the-underscore-prefix/m-p/1071559#M119608</link>
    <description>&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;!DEC$ ATTRIBUTES DLLIMPORT, ALIAS: 'MYFUNC' :: MYFUNC&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2016 08:11:57 GMT</pubDate>
    <dc:creator>andrew_4619</dc:creator>
    <dc:date>2016-07-26T08:11:57Z</dc:date>
    <item>
      <title>dllimport directive to remove the underscore prefix</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/dllimport-directive-to-remove-the-underscore-prefix/m-p/1071558#M119607</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; -webkit-text-size-adjust: 100%;"&gt;Hi,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; -webkit-text-size-adjust: 100%;"&gt;I would like to import a subroutine defined in a dll I built in Delphi in my fortran code.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;How can I tell the compiler that &amp;nbsp;I don't want the underscore prefix when using the dllimport command?&lt;/P&gt;

&lt;P&gt;for now I have something like:&lt;/P&gt;

&lt;P&gt;!dec$ attributes dllimport :: myfunc&lt;/P&gt;

&lt;P&gt;and I specified in the visual studio environment that I am using standard calls and names in capital letters. However, the compiler always add an underscore prefix and throw an error upon linking because it cannot find the &amp;nbsp;_MYFUNC external symbol (the name of the subroutine is MYFUNC in the dll and associated lib file)&lt;/P&gt;

&lt;P&gt;Sincerely,&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 03:59:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/dllimport-directive-to-remove-the-underscore-prefix/m-p/1071558#M119607</guid>
      <dc:creator>jpharvey1981</dc:creator>
      <dc:date>2016-07-26T03:59:09Z</dc:date>
    </item>
    <item>
      <title>!DEC$ ATTRIBUTES DLLIMPORT,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/dllimport-directive-to-remove-the-underscore-prefix/m-p/1071559#M119608</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;!DEC$ ATTRIBUTES DLLIMPORT, ALIAS: 'MYFUNC' :: MYFUNC&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 08:11:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/dllimport-directive-to-remove-the-underscore-prefix/m-p/1071559#M119608</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2016-07-26T08:11:57Z</dc:date>
    </item>
  </channel>
</rss>

