<?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 I puzzled over this in the in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/C-Code-written-in-VS2010-is-working-in-Linux-but-not-in-windows/m-p/1116772#M130705</link>
    <description>&lt;P&gt;I puzzled over this in the previous posting location.&amp;nbsp; OP tried to use the legacy appended string length argument, but there might be a data type mismatch between the std C strlen() function and the expected type for the Fortran implicit string length (would (int) cast paper over this?).&amp;nbsp; As Arjen said, upgrading the code to Fortran 2003 might avoid some confusion and permit the compiler to do some checking (as would more correct use of includes on the C side).&lt;/P&gt;

&lt;P&gt;I don't know how conio.h could be expected to be portable across the range of platforms quoted here.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2016 12:07:06 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2016-03-22T12:07:06Z</dc:date>
    <item>
      <title>C++ Code written in VS2010 is working in Linux but not in windows</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/C-Code-written-in-VS2010-is-working-in-Linux-but-not-in-windows/m-p/1116766#M130699</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(34, 36, 38); line-height: 19.5px; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;"&gt;I am working on VS2010 mixed-programing and use the Intel Compiler / VisualStudio (Intel Parallel 2015) to compile my project in VS 2010.&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="lang-cpp prettyprint prettyprinted" style="padding: 5px; border: 0px currentColor; border-image: none; width: auto; color: rgb(57, 51, 24); overflow: auto; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; margin-top: 0px; margin-bottom: 1em; -ms-word-wrap: normal; max-height: 600px; background-color: rgb(238, 238, 238);"&gt;&lt;CODE style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; white-space: inherit;"&gt;&lt;SPAN class="com" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: gray;"&gt;#include&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: maroon;"&gt;&amp;lt;conio.h&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;
&lt;/SPAN&gt;&lt;SPAN class="com" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: gray;"&gt;#include&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: maroon;"&gt;&amp;lt;string.h&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;

&lt;/SPAN&gt;&lt;SPAN class="com" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: gray;"&gt;//#define readfile readfile_&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;

&lt;/SPAN&gt;&lt;SPAN class="kwd" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: rgb(0, 0, 139);"&gt;extern&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: rgb(0, 0, 139);"&gt;void&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; readfile&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: rgb(0, 0, 139);"&gt;char&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;*,&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: rgb(43, 145, 175);"&gt;int&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;*);&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;

&lt;/SPAN&gt;&lt;SPAN class="typ" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: rgb(43, 145, 175);"&gt;int&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; main&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;()&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;
&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;
    &lt;/SPAN&gt;&lt;SPAN class="typ" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: rgb(43, 145, 175);"&gt;int&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; n&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; count&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;
    &lt;/SPAN&gt;&lt;SPAN class="kwd" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: rgb(0, 0, 139);"&gt;char&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: rgb(43, 145, 175);"&gt;Fname&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="lit" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: maroon;"&gt;9&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;];&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;
    &lt;/SPAN&gt;&lt;SPAN class="kwd" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: rgb(0, 0, 139);"&gt;char&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: rgb(43, 145, 175);"&gt;Name&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="lit" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: maroon;"&gt;10&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;];&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;

    strcpy&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: rgb(43, 145, 175);"&gt;Fname&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="str" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: maroon;"&gt;"AMIN.for"&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;
    fprintf&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; stderr&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: maroon;"&gt;"%s\n"&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: rgb(43, 145, 175);"&gt;Fname&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;

    readfile&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: rgb(43, 145, 175);"&gt;Fname&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;n &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; strlen &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: rgb(43, 145, 175);"&gt;Fname&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;));&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;
    fprintf&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; stderr&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: maroon;"&gt;"n = %d\n"&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; n&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;
&lt;/SPAN&gt;&lt;SPAN class="com" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: gray;"&gt;//  fprintf( stderr, "%s\n", Name);&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;
    getch&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;();&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;
    &lt;/SPAN&gt;&lt;SPAN class="kwd" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: rgb(0, 0, 139);"&gt;return&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: maroon;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;
&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;
subroutine &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: rgb(43, 145, 175);"&gt;Lib&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; fortran&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;

      subroutine readfile&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; fname1&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; m &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;
      character fname1&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;*(*)&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;
      integer m
      integer iounit&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;i
      iounit&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: maroon;"&gt;15&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;
      write&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;(*,*)&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; fname1
c10   format &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;a9&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;
      open&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;iounit&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;file &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; fname1&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;action&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: maroon;"&gt;'read'&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;
      read &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;iounit&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;,*)&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; m
c20    format &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;i10&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;
      write&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;(*,*)&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; m
      close&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;iounit&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt;
      &lt;/SPAN&gt;&lt;SPAN class="kwd" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: rgb(0, 0, 139);"&gt;return&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; color: black;"&gt; 
      end subroutine&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(34, 36, 38); line-height: 19.5px; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;"&gt;My program is compiling on Linux but not compiling in windows(VS) I don't know what happen exactly. Thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 10:16:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/C-Code-written-in-VS2010-is-working-in-Linux-but-not-in-windows/m-p/1116766#M130699</guid>
      <dc:creator>Muhammad_S_4</dc:creator>
      <dc:date>2016-03-18T10:16:12Z</dc:date>
    </item>
    <item>
      <title>You might want to re-post</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/C-Code-written-in-VS2010-is-working-in-Linux-but-not-in-windows/m-p/1116767#M130700</link>
      <description>&lt;P&gt;You might want to re-post your question on the Fortran forum. &amp;nbsp;Here is one post that I found which discusses calling Fortran from C:&amp;nbsp;https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/515579&lt;/P&gt;</description>
      <pubDate>Sun, 20 Mar 2016 13:46:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/C-Code-written-in-VS2010-is-working-in-Linux-but-not-in-windows/m-p/1116767#M130700</guid>
      <dc:creator>Melanie_B_Intel</dc:creator>
      <dc:date>2016-03-20T13:46:50Z</dc:date>
    </item>
    <item>
      <title>Your screenshot is showing a</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/C-Code-written-in-VS2010-is-working-in-Linux-but-not-in-windows/m-p/1116768#M130701</link>
      <description>&lt;P&gt;Your screenshot is showing a runtime error, not a compile time error.&lt;/P&gt;

&lt;P&gt;When you run in the VS&amp;nbsp;debugger, the default working directory is the Project directory of the executable (startup project). I suspect your data file is not located in the expected directory.&lt;/P&gt;

&lt;P&gt;Also, it is not good practice to name your data file xxx.for&lt;BR /&gt;
	.for files are fixed format Fortran files.&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 19:08:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/C-Code-written-in-VS2010-is-working-in-Linux-but-not-in-windows/m-p/1116768#M130701</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2016-03-21T19:08:52Z</dc:date>
    </item>
    <item>
      <title>Hi Muhammad,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/C-Code-written-in-VS2010-is-working-in-Linux-but-not-in-windows/m-p/1116769#M130702</link>
      <description>&lt;P&gt;Hi Muhammad,&lt;BR /&gt;
	I'll transfer this issue to the Fortran forum and you'll be supported by the engineers supporting that compiler towards resolution, fyi.&lt;BR /&gt;
	_Kittur&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 21:09:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/C-Code-written-in-VS2010-is-working-in-Linux-but-not-in-windows/m-p/1116769#M130702</guid>
      <dc:creator>KitturGanesh</dc:creator>
      <dc:date>2016-03-21T21:09:56Z</dc:date>
    </item>
    <item>
      <title>I didn't check closely the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/C-Code-written-in-VS2010-is-working-in-Linux-but-not-in-windows/m-p/1116770#M130703</link>
      <description>&lt;P&gt;I didn't check closely the code in this post, but it looks eerily familiar. &amp;nbsp;How's the issue at hand different from those in the previous threads by this OP for which RO and mecej4 have provided detailed assistance as well as working code?&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/604747" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/604747&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/606064" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/606064&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 22:21:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/C-Code-written-in-VS2010-is-working-in-Linux-but-not-in-windows/m-p/1116770#M130703</guid>
      <dc:creator>FortranFan</dc:creator>
      <dc:date>2016-03-21T22:21:48Z</dc:date>
    </item>
    <item>
      <title>Apart from that, the OP is</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/C-Code-written-in-VS2010-is-working-in-Linux-but-not-in-windows/m-p/1116771#M130704</link>
      <description>&lt;P&gt;Apart from that, the OP is not using the correct invocation for the Fortran subroutine: in Fortran there is a hidden argument for character arguments which passes the length of the character variable to the subroutine. In absence of that argument, the routine may use any odd length.&lt;/P&gt;

&lt;P&gt;I suggest that OP uses the ISO_C_BINDING feature to avoid this as well as the naming convention dependency - see the commented #define. Using that feature means that the interfacing between C and Fortran becomes platform-independent.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 07:29:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/C-Code-written-in-VS2010-is-working-in-Linux-but-not-in-windows/m-p/1116771#M130704</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2016-03-22T07:29:56Z</dc:date>
    </item>
    <item>
      <title>I puzzled over this in the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/C-Code-written-in-VS2010-is-working-in-Linux-but-not-in-windows/m-p/1116772#M130705</link>
      <description>&lt;P&gt;I puzzled over this in the previous posting location.&amp;nbsp; OP tried to use the legacy appended string length argument, but there might be a data type mismatch between the std C strlen() function and the expected type for the Fortran implicit string length (would (int) cast paper over this?).&amp;nbsp; As Arjen said, upgrading the code to Fortran 2003 might avoid some confusion and permit the compiler to do some checking (as would more correct use of includes on the C side).&lt;/P&gt;

&lt;P&gt;I don't know how conio.h could be expected to be portable across the range of platforms quoted here.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 12:07:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/C-Code-written-in-VS2010-is-working-in-Linux-but-not-in-windows/m-p/1116772#M130705</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2016-03-22T12:07:06Z</dc:date>
    </item>
  </channel>
</rss>

