<?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 replacing stdio.h in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/replacing-stdio-h/m-p/741238#M520</link>
    <description>I made a typo here. It is icc and stdio.h that do not work together, obviously not icc and icc. &lt;BR /&gt;&lt;BR /&gt;What doI do when I need to print to a file and I use the icc compiler?&lt;BR /&gt;&lt;BR /&gt;Newport_j</description>
    <pubDate>Wed, 22 Feb 2012 15:22:28 GMT</pubDate>
    <dc:creator>newport_j</dc:creator>
    <dc:date>2012-02-22T15:22:28Z</dc:date>
    <item>
      <title>replacing stdio.h</title>
      <link>https://community.intel.com/t5/Software-Archive/replacing-stdio-h/m-p/741235#M517</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;If a programmer removes stdio.h in source code that he compiles with icc, then how is &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FILE *fid&lt;BR /&gt;&lt;BR /&gt;fprintfid,"FREQ = ");&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;handled? we obviuosly want to print this into a file not to the screen, but by removing &lt;BR /&gt;&lt;BR /&gt;stdio.h we cannot do it.&lt;BR /&gt;&lt;BR /&gt;Again, theis works fine in gcc, not so fine in icc.&lt;BR /&gt;&lt;BR /&gt;Any help appreciated.&lt;BR /&gt;&lt;BR /&gt;Newport_j</description>
      <pubDate>Tue, 21 Feb 2012 16:47:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/replacing-stdio-h/m-p/741235#M517</guid>
      <dc:creator>newport_j</dc:creator>
      <dc:date>2012-02-21T16:47:00Z</dc:date>
    </item>
    <item>
      <title>replacing stdio.h</title>
      <link>https://community.intel.com/t5/Software-Archive/replacing-stdio-h/m-p/741236#M518</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;"&lt;I&gt;FILE&lt;/I&gt;" is not a standard type. Hence a compiler following strict standards will fail here with an unknown identifier message. "&lt;I&gt;stdio.h&lt;/I&gt;" is the one aliasing type "&lt;I&gt;FILE&lt;/I&gt;" to some base type or &lt;I&gt;struct&lt;/I&gt; of base types&lt;I&gt;&lt;/I&gt;; only when this is done the compiler can understand the "&lt;I&gt;FILE&lt;/I&gt;" identifier.&lt;BR /&gt;I know that in some cases (like yours) GCC tolerates omitting this header but that's more for convenience and does not generally work for all types/functions defined in "&lt;I&gt;stdio.h&lt;/I&gt;" AFAIK.&lt;BR /&gt;&lt;BR /&gt;The correct way is to always include headers whose defined functionality you're using. In your case: "&lt;I&gt;stdio.h&lt;/I&gt;".&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Georg Zitzlsberger</description>
      <pubDate>Tue, 21 Feb 2012 17:03:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/replacing-stdio-h/m-p/741236#M518</guid>
      <dc:creator>Georg_Z_Intel</dc:creator>
      <dc:date>2012-02-21T17:03:25Z</dc:date>
    </item>
    <item>
      <title>replacing stdio.h</title>
      <link>https://community.intel.com/t5/Software-Archive/replacing-stdio-h/m-p/741237#M519</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;I understand that. I am using icc and it simply does not like working with the icc compiler. So if I am to use the structure that I outlined at the beginning of this thread, then how do I print output to a file? Remember, gcc and stdio.h ok, icc and stdio.h not ok.&lt;BR /&gt;&lt;BR /&gt;Any help appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Newport_j</description>
      <pubDate>Wed, 22 Feb 2012 15:10:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/replacing-stdio-h/m-p/741237#M519</guid>
      <dc:creator>newport_j</dc:creator>
      <dc:date>2012-02-22T15:10:24Z</dc:date>
    </item>
    <item>
      <title>replacing stdio.h</title>
      <link>https://community.intel.com/t5/Software-Archive/replacing-stdio-h/m-p/741238#M520</link>
      <description>I made a typo here. It is icc and stdio.h that do not work together, obviously not icc and icc. &lt;BR /&gt;&lt;BR /&gt;What doI do when I need to print to a file and I use the icc compiler?&lt;BR /&gt;&lt;BR /&gt;Newport_j</description>
      <pubDate>Wed, 22 Feb 2012 15:22:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/replacing-stdio-h/m-p/741238#M520</guid>
      <dc:creator>newport_j</dc:creator>
      <dc:date>2012-02-22T15:22:28Z</dc:date>
    </item>
    <item>
      <title>replacing stdio.h</title>
      <link>https://community.intel.com/t5/Software-Archive/replacing-stdio-h/m-p/741239#M521</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I'm a bit confused now. So far I've never heard of any problems regarding our compiler and "&lt;I&gt;stdio.h&lt;/I&gt;" from the system.&lt;BR /&gt;&lt;BR /&gt;Let's start with an example:&lt;BR /&gt;[cpp]#include &lt;STDIO.H&gt;

int main(int argc, char **argv)
{
    FILE *fh;

    fh = fopen("test.log", "w");
    fprintf(fh, "SUCCESSn");
    fclose(fh);

    return 0;
}[/cpp] &lt;BR /&gt;If you do&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt; $ icc test.c -o test&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;...it should have compiled &lt;I&gt;test &lt;/I&gt;correctly. You seem to see an error message instead, don't you? What is it?&lt;BR /&gt;&lt;BR /&gt;Please also compile with "&lt;I&gt;-H&lt;/I&gt;" option and look whether "&lt;I&gt;stdio.h&lt;/I&gt;" exists. I get something like this:&lt;BR /&gt;&lt;I&gt; $ icc test.c -o test -H 2&amp;gt;&amp;amp;1 | grep stdio.h&lt;BR /&gt; . /usr/include/stdio.h&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;What's your output and does this file exist? Is it readable for you, too? (e.g. &lt;I&gt;cat /usr/include/stdio.h&lt;/I&gt;)&lt;BR /&gt;&lt;BR /&gt;Edit: In case "&lt;I&gt;stdio.h&lt;/I&gt;" is missing on your system, did you install the &lt;I&gt;libc6-dev&lt;/I&gt; (or similar) package?&lt;BR /&gt;&lt;BR /&gt;Thank you &amp;amp; best regards,&lt;BR /&gt;&lt;BR /&gt;Georg Zitzlsberger&lt;BR /&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Wed, 22 Feb 2012 15:40:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/replacing-stdio-h/m-p/741239#M521</guid>
      <dc:creator>Georg_Z_Intel</dc:creator>
      <dc:date>2012-02-22T15:40:32Z</dc:date>
    </item>
    <item>
      <title>replacing stdio.h</title>
      <link>https://community.intel.com/t5/Software-Archive/replacing-stdio-h/m-p/741240#M522</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;The stdio.h file is there and it is readable. But, when I try to compile the code you wrote this is what I get:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/usr/include/libio.h(53) catastrophic error: cannot open source file "stdarg.h"&lt;BR /&gt;# include &lt;STDARG.H&gt;&lt;BR /&gt; ^&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;compilation aborted for test2.c (code 4)&lt;BR /&gt;&lt;BR /&gt;my file name is test2.c. Now, if you look at some of my previous threads you can see that I thought the way to correct this was delete &lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;&lt;BR /&gt;If there is a better way, I would like to know?&lt;BR /&gt;&lt;BR /&gt;Any help appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Newport_j&lt;/STDIO.H&gt;&lt;/STDARG.H&gt;</description>
      <pubDate>Wed, 22 Feb 2012 18:50:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/replacing-stdio-h/m-p/741240#M522</guid>
      <dc:creator>newport_j</dc:creator>
      <dc:date>2012-02-22T18:50:11Z</dc:date>
    </item>
    <item>
      <title>replacing stdio.h</title>
      <link>https://community.intel.com/t5/Software-Archive/replacing-stdio-h/m-p/741241#M523</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;could you send me output from:&lt;BR /&gt;&lt;BR /&gt; &lt;I&gt;$ icc test.c -o test -H&lt;/I&gt;&lt;BR /&gt;and&lt;BR /&gt; &lt;I&gt;$ gcc test.c -o test -H&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;plus&lt;BR /&gt; &lt;I&gt;$ dpkg -S stdarg.h&lt;/I&gt;&lt;BR /&gt;and&lt;BR /&gt; &lt;I&gt;$ gcc -v&lt;/I&gt;&lt;BR /&gt;and&lt;BR /&gt; &lt;I&gt;$ gcc -dM -E - &lt;BR /&gt;&lt;BR /&gt;Please also check that all the files printed from "&lt;I&gt;dpkg -S stdarg.h&lt;/I&gt;" are actually on your system and accessible!&lt;BR /&gt;&lt;BR /&gt;Looking at your other threads I assume you're using Ubuntu* 11.10 (oneiric) and Intel Composer XE 2011 Update 9 (12.1.3). Please correct me if I'm wrong.&lt;BR /&gt;&lt;BR /&gt;There is no reasonable way not to use "&lt;I&gt;stdio.h&lt;/I&gt;" in your case. Such basic things should always work and if not there's high likely a problem in your build environment that should get solved. Otherwise you'll run from one problem into another.&lt;BR /&gt;&lt;BR /&gt;Thank you and best regards,&lt;BR /&gt;&lt;BR /&gt;Georg Zitzlsberger&lt;BR /&gt;&lt;/I&gt;</description>
      <pubDate>Thu, 23 Feb 2012 14:45:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/replacing-stdio-h/m-p/741241#M523</guid>
      <dc:creator>Georg_Z_Intel</dc:creator>
      <dc:date>2012-02-23T14:45:35Z</dc:date>
    </item>
    <item>
      <title>replacing stdio.h</title>
      <link>https://community.intel.com/t5/Software-Archive/replacing-stdio-h/m-p/741242#M524</link>
      <description>&lt;A onclick="ndownload('http://software.intel.com/file/41865')"&gt;test.c&lt;/A&gt;&lt;A onclick="ndownload('http://software.intel.com/file/41864')"&gt;err.txt&lt;/A&gt;&lt;A onclick="ndownload('http://software.intel.com/file/41863')"&gt;test2.sh&lt;/A&gt;&lt;A onclick="ndownload('http://software.intel.com/file/41857')"&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.intel.com/skins/images/7B13F55A7CE623EF42E69096FA81A3A1/2021_redesign/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.intel.com/skins/images/7B13F55A7CE623EF42E69096FA81A3A1/2021_redesign/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.intel.com/skins/images/7B13F55A7CE623EF42E69096FA81A3A1/2021_redesign/images/image_not_found.png" /&gt;&lt;/span&gt;out.txt&lt;/A&gt;I am using ubuntu 11.04.I think that I know what is wrong. I still have on my desktop Cilk Arts Cilk++. If you look at my path in one of the attached files you will see &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/home/james/desktop/cilk/bin/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Which takes you to the Cilk Arts installation. Can I remove the Cilk Arts install by deleting the cilk directory? Are there sytem files that I must chnage.&lt;BR /&gt;&lt;BR /&gt;Do I neeed to reinstall Intel Cilk++?&lt;BR /&gt;&lt;BR /&gt;If you lood at my path before and after &lt;BR /&gt;&lt;BR /&gt;source compilervars.sh&lt;BR /&gt;&lt;BR /&gt;you will notice that path sections are added to the front and the back of my original path. Is this normal?&lt;BR /&gt;&lt;BR /&gt;I am attaching all relevant files. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any help appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;newport_j&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Feb 2012 19:46:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/replacing-stdio-h/m-p/741242#M524</guid>
      <dc:creator>newport_j</dc:creator>
      <dc:date>2012-02-23T19:46:18Z</dc:date>
    </item>
    <item>
      <title>replacing stdio.h</title>
      <link>https://community.intel.com/t5/Software-Archive/replacing-stdio-h/m-p/741243#M525</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;thank you for the comprehensive information you provided! Unfortunately not all attachments can be opened.&lt;BR /&gt;&lt;BR /&gt;Anyways, I think I've an idea:&lt;BR /&gt;You were building an own GCC version which has been configured for installation prefix &lt;I&gt;"/home/build/32/local/cilk&lt;/I&gt;" but in the end you're using GCC from "&lt;I&gt;/home/james/Desktop/cilk&lt;/I&gt;". If you have moved (or copied &amp;amp; removed) the location there might be some pointers to the old location not being updated. Our compiler depends on those to find the correct paths for libraries &amp;amp; include files.&lt;BR /&gt;&lt;BR /&gt;Could you please rebuild with using the final installation prefix without moving/copying anything around?&lt;BR /&gt;&lt;BR /&gt;To make sure that a setup like yours works with our compiler I've also compiled my own GCC compiler (same version: 4.2.4). Only "&lt;I&gt;gcc&lt;/I&gt;" had to be in &lt;I&gt;$PATH&lt;/I&gt; so our compiler can find the correct libraries &amp;amp; header files automatically.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Georg Zitzlsberger</description>
      <pubDate>Fri, 24 Feb 2012 14:57:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/replacing-stdio-h/m-p/741243#M525</guid>
      <dc:creator>Georg_Z_Intel</dc:creator>
      <dc:date>2012-02-24T14:57:07Z</dc:date>
    </item>
  </channel>
</rss>

