<?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 Compiling dll in ifort vs visual studio in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-dll-in-ifort-vs-visual-studio/m-p/1129525#M133936</link>
    <description>&lt;P&gt;I'm trying to compile a dynamic library in VS2010. I've already tried compiling it with ifort using multiple compile lines for lowest level source files to highest level. Everything compiled fine but I did get one warning at the end:&lt;/P&gt;

&lt;P&gt;LINK: warning LNK4098: defaultlib 'LIBCMT' conflicts with the use of other libs; use /NODEFAULTLIB:library&lt;/P&gt;

&lt;P&gt;Nevertheless I think that the dll has compiled OK.&lt;/P&gt;

&lt;P&gt;Next I tried to move all the source files to visual studio. I enabled preprocessing because my source files do contain some directives. Unfortunately when I try to build the solution I get an error for one of the subroutines at an intermediate-level source files:&lt;/P&gt;

&lt;DIV&gt;Error&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt;1&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt; error #6633: The type of the actual argument differs from the type of the dummy argument.&amp;nbsp; &amp;nbsp;[1.]&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt;After which it aborts the compilation. Please note that I simply imported all my source files under the Source Files directory in my VS2010 project, enabled /fpp and pressed "Build". Does the user also need to specify the compile order in Visual Studio or is this handled automatically? Why am I getting a type error in VS when the exact same source files compile just fine in ifort? Thanks for your help.&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2017 06:09:40 GMT</pubDate>
    <dc:creator>awa5114</dc:creator>
    <dc:date>2017-09-22T06:09:40Z</dc:date>
    <item>
      <title>Compiling dll in ifort vs visual studio</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-dll-in-ifort-vs-visual-studio/m-p/1129525#M133936</link>
      <description>&lt;P&gt;I'm trying to compile a dynamic library in VS2010. I've already tried compiling it with ifort using multiple compile lines for lowest level source files to highest level. Everything compiled fine but I did get one warning at the end:&lt;/P&gt;

&lt;P&gt;LINK: warning LNK4098: defaultlib 'LIBCMT' conflicts with the use of other libs; use /NODEFAULTLIB:library&lt;/P&gt;

&lt;P&gt;Nevertheless I think that the dll has compiled OK.&lt;/P&gt;

&lt;P&gt;Next I tried to move all the source files to visual studio. I enabled preprocessing because my source files do contain some directives. Unfortunately when I try to build the solution I get an error for one of the subroutines at an intermediate-level source files:&lt;/P&gt;

&lt;DIV&gt;Error&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt;1&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt; error #6633: The type of the actual argument differs from the type of the dummy argument.&amp;nbsp; &amp;nbsp;[1.]&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt;After which it aborts the compilation. Please note that I simply imported all my source files under the Source Files directory in my VS2010 project, enabled /fpp and pressed "Build". Does the user also need to specify the compile order in Visual Studio or is this handled automatically? Why am I getting a type error in VS when the exact same source files compile just fine in ifort? Thanks for your help.&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 06:09:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-dll-in-ifort-vs-visual-studio/m-p/1129525#M133936</guid>
      <dc:creator>awa5114</dc:creator>
      <dc:date>2017-09-22T06:09:40Z</dc:date>
    </item>
    <item>
      <title>If each source file is</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-dll-in-ifort-vs-visual-studio/m-p/1129526#M133937</link>
      <description>&lt;P&gt;If each source file is compiled separately and all the resulting .OBJ files linked to produce the DLL, mismatched arguments will be detected only if the called subprogram and the lines with the calls to it are in the same source file. You should investigate and ensure that the mismatch is safe ignore, or fix the error.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The reason that you obtained different behavior with VS is that the compiler options in effect were different than when you compiled at the command line. There are menu items in VS in which you can find the effective options; you can also find that information in the build log file.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 07:44:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-dll-in-ifort-vs-visual-studio/m-p/1129526#M133937</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2017-09-22T07:44:07Z</dc:date>
    </item>
    <item>
      <title>hello</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-dll-in-ifort-vs-visual-studio/m-p/1129527#M133938</link>
      <description>&lt;P&gt;hello&lt;/P&gt;

&lt;P&gt;for the subroutine that gives the error verifies the conversion or equivalence of the type of data of ifort and VB&lt;/P&gt;

&lt;P&gt;ED.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 21:27:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiling-dll-in-ifort-vs-visual-studio/m-p/1129527#M133938</guid>
      <dc:creator>Eloy_D_</dc:creator>
      <dc:date>2017-09-22T21:27:26Z</dc:date>
    </item>
  </channel>
</rss>

