<?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 Declare the C++ function with in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-Microsoft-C-from-Intel-Visual-Fortran/m-p/1146600#M138742</link>
    <description>&lt;P&gt;Declare the C++ function with extern "C", use BIND(C) on the Fortran side, and in general away you go...&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jun 2018 04:02:36 GMT</pubDate>
    <dc:creator>IanH</dc:creator>
    <dc:date>2018-06-27T04:02:36Z</dc:date>
    <item>
      <title>Calling Microsoft C++ from Intel Visual Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-Microsoft-C-from-Intel-Visual-Fortran/m-p/1146597#M138739</link>
      <description>&lt;P&gt;What is the best way to call a Microsoft C++ routine from Intel Visual Fortran? I would prefer to create a MS C++ library and then link it into my application and call it direct rather than making a C++ DLL and then calling the DLL.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 01:13:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-Microsoft-C-from-Intel-Visual-Fortran/m-p/1146597#M138739</guid>
      <dc:creator>schulzey</dc:creator>
      <dc:date>2018-06-27T01:13:23Z</dc:date>
    </item>
    <item>
      <title>That's a pretty broad</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-Microsoft-C-from-Intel-Visual-Fortran/m-p/1146598#M138740</link>
      <description>&lt;P&gt;That's a pretty broad question. You can do what you prefer (C++ static library that a Fortran program links to, or vice versa). Is there some particular aspect that you want more information on?&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 02:30:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-Microsoft-C-from-Intel-Visual-Fortran/m-p/1146598#M138740</guid>
      <dc:creator>IanH</dc:creator>
      <dc:date>2018-06-27T02:30:33Z</dc:date>
    </item>
    <item>
      <title>Apologies if it was too broad</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-Microsoft-C-from-Intel-Visual-Fortran/m-p/1146599#M138741</link>
      <description>&lt;P&gt;Apologies if it was too broad. I would prefer a MS C++ static library that I would just call from Intel Fortran. I would just set up a data structure in the Fortran and pass its pointer to the C++ routine which would contain an equivalent structure. How to pass the data back and forth is not a problem.&lt;/P&gt;

&lt;P&gt;The main thing I'm unsure about is what pragmas, etc are required in the Fortran and C++ so that they link and communicate with each other properly.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 03:14:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-Microsoft-C-from-Intel-Visual-Fortran/m-p/1146599#M138741</guid>
      <dc:creator>schulzey</dc:creator>
      <dc:date>2018-06-27T03:14:25Z</dc:date>
    </item>
    <item>
      <title>Declare the C++ function with</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-Microsoft-C-from-Intel-Visual-Fortran/m-p/1146600#M138742</link>
      <description>&lt;P&gt;Declare the C++ function with extern "C", use BIND(C) on the Fortran side, and in general away you go...&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 04:02:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-Microsoft-C-from-Intel-Visual-Fortran/m-p/1146600#M138742</guid>
      <dc:creator>IanH</dc:creator>
      <dc:date>2018-06-27T04:02:36Z</dc:date>
    </item>
    <item>
      <title>For usage of BIND(C) there</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-Microsoft-C-from-Intel-Visual-Fortran/m-p/1146601#M138743</link>
      <description>&lt;P&gt;For usage of BIND(C) there are useful examples you can find by search engines (perhaps as ISO C interop).&amp;nbsp; Fortunately, this is an aspect of Fortran which generally is treated accurately.&amp;nbsp; Multiple rank arrays aren't so pretty.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 12:02:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-Microsoft-C-from-Intel-Visual-Fortran/m-p/1146601#M138743</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2018-06-27T12:02:27Z</dc:date>
    </item>
    <item>
      <title>Quote:schulzey wrote:</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-Microsoft-C-from-Intel-Visual-Fortran/m-p/1146602#M138744</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;schulzey wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Apologies if it was too broad. I would prefer a MS C++ static library that I would just call from Intel Fortran. I would just set up a data structure in the Fortran and pass its pointer to the C++ routine which would contain an equivalent structure. How to pass the data back and forth is not a problem.&lt;/P&gt;

&lt;P&gt;The main thing I'm unsure about is what pragmas, etc are required in the Fortran and C++ so that they link and communicate with each other properly.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;See this thread on this forum, quote #6 for an example:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/699941" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/699941&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 13:30:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-Microsoft-C-from-Intel-Visual-Fortran/m-p/1146602#M138744</guid>
      <dc:creator>FortranFan</dc:creator>
      <dc:date>2018-06-27T13:30:04Z</dc:date>
    </item>
  </channel>
</rss>

