<?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 icc and gcc in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741149#M484</link>
    <description>I was trying to answer your question about includes and created two files exp.c and power.c that can isolate the issue. They are attached with source.&lt;BR /&gt;&lt;BR /&gt;I got an error /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;compilation aborted for exp.c (code 4)&lt;BR /&gt;&lt;BR /&gt;I guess in icc there is no stdarg.h in the include files. What is the workaround? I am sure this problem has arisen before and there are other ones that may bite me. Is there a paper that has all (or most) of the differences between icc and gcc like this?&lt;BR /&gt;&lt;BR /&gt;Ant help appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Newport_j&lt;/STDARG.H&gt;</description>
    <pubDate>Wed, 15 Feb 2012 17:47:37 GMT</pubDate>
    <dc:creator>newport_j</dc:creator>
    <dc:date>2012-02-15T17:47:37Z</dc:date>
    <item>
      <title>icc and gcc</title>
      <link>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741146#M481</link>
      <description>Ihavesome files that compile perfectly under gcc, under icc not so much.&lt;BR /&gt;&lt;BR /&gt;I took out the -lm and O compiler command options because it gave me warnings and when I took those command options for gcc out for icc it stopped warning me.&lt;BR /&gt;&lt;BR /&gt;However, I am getting a lot of errors of "error: expected an expresion" type with a carrot placed under expressions like log10 , exp, sqrt. I believe it needs the Intel equivalent of -lm. What is it?&lt;BR /&gt;&lt;BR /&gt;I replaced in my compile script gcc with icc. Then dropped -lm and then -O. I still get the expected an expression error andI am not sure what is the cause.&lt;BR /&gt;&lt;BR /&gt;Also what is the icpc command. It must be different from icc.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Newport_j</description>
      <pubDate>Tue, 14 Feb 2012 21:47:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741146#M481</guid>
      <dc:creator>newport_j</dc:creator>
      <dc:date>2012-02-14T21:47:35Z</dc:date>
    </item>
    <item>
      <title>icc and gcc</title>
      <link>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741147#M482</link>
      <description>You still need&lt;BR /&gt;#include &lt;MATH.H&gt;&lt;BR /&gt;or&lt;BR /&gt;#include &lt;MATHIMF.H&gt;&lt;BR /&gt;or you will get the missing definition errors. If you use C++headers, you need icpc. Or, did you fail to follow math function names with a parameter list in ( )?&lt;BR /&gt;icpc is used the same way as g++, but with icc command line options. It's basically icc with C++ headers, syntax, and libraries. You don't need -lm with g++ or icpc; it's implied.&lt;/MATHIMF.H&gt;&lt;/MATH.H&gt;</description>
      <pubDate>Tue, 14 Feb 2012 22:41:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741147#M482</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2012-02-14T22:41:22Z</dc:date>
    </item>
    <item>
      <title>icc and gcc</title>
      <link>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741148#M483</link>
      <description>What #includes are you using? I tried to reproduce by not including math.h, but gcc errors as well.</description>
      <pubDate>Tue, 14 Feb 2012 23:56:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741148#M483</guid>
      <dc:creator>Brandon_H_Intel</dc:creator>
      <dc:date>2012-02-14T23:56:44Z</dc:date>
    </item>
    <item>
      <title>icc and gcc</title>
      <link>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741149#M484</link>
      <description>I was trying to answer your question about includes and created two files exp.c and power.c that can isolate the issue. They are attached with source.&lt;BR /&gt;&lt;BR /&gt;I got an error /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;compilation aborted for exp.c (code 4)&lt;BR /&gt;&lt;BR /&gt;I guess in icc there is no stdarg.h in the include files. What is the workaround? I am sure this problem has arisen before and there are other ones that may bite me. Is there a paper that has all (or most) of the differences between icc and gcc like this?&lt;BR /&gt;&lt;BR /&gt;Ant help appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Newport_j&lt;/STDARG.H&gt;</description>
      <pubDate>Wed, 15 Feb 2012 17:47:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741149#M484</guid>
      <dc:creator>newport_j</dc:creator>
      <dc:date>2012-02-15T17:47:37Z</dc:date>
    </item>
    <item>
      <title>icc and gcc</title>
      <link>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741150#M485</link>
      <description>For the most part, icc does not provide its own include files (there are exceptions like math.h) - it just uses what comes with gcc/glibc. WhatLinux versionand gcc version are you using specifically, and also what version if icc (you can find this with icc -V)? I'm thinking there might be something unsupported somewhere, as I can compile/link/run both pow.c and exp.c fine (although I did have to specify -std=c99 on pow.c, which I had to do with gcc as well).</description>
      <pubDate>Wed, 15 Feb 2012 17:56:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741150#M485</guid>
      <dc:creator>Brandon_H_Intel</dc:creator>
      <dc:date>2012-02-15T17:56:20Z</dc:date>
    </item>
    <item>
      <title>icc and gcc</title>
      <link>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741151#M486</link>
      <description>There is also a whitepaper on gcc compatibility at &lt;A href="http://software.intel.com/sites/products/collateral/hpc/compilers/intel_linux_compiler_compatibility_with_gnu_compilers.pdf"&gt;http://software.intel.com/sites/products/collateral/hpc/compilers/intel_linux_compiler_compatibility_with_gnu_compilers.pdf&lt;/A&gt; which may help, but this seems a more basic problem than what would be addressed in there.</description>
      <pubDate>Wed, 15 Feb 2012 17:57:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741151#M486</guid>
      <dc:creator>Brandon_H_Intel</dc:creator>
      <dc:date>2012-02-15T17:57:53Z</dc:date>
    </item>
    <item>
      <title>icc and gcc</title>
      <link>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741152#M487</link>
      <description>&lt;BR /&gt;My gcc version is 4.2.4, my icc version 12.0.0. I am using Ubuntu 11.04 and I am using a Xeon quadcoreprocessor. As you can seeI am simply creating (making up) small programs that exemplify what is wrong in the main program. I hope to solve it on a 9 line program and not the 35,000+ line program.&lt;BR /&gt;&lt;BR /&gt;Hence the use of exp.c and power.c.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.I just want these two mini-progs to compile.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Newport_j&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Feb 2012 18:45:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741152#M487</guid>
      <dc:creator>newport_j</dc:creator>
      <dc:date>2012-02-15T18:45:18Z</dc:date>
    </item>
    <item>
      <title>icc and gcc</title>
      <link>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741153#M488</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;What does the commandsource compilervars.sh do?&lt;BR /&gt;&lt;BR /&gt;I had to run this again this morning when I came in and typed in the password to unlock my screensaver. &lt;BR /&gt;&lt;BR /&gt;I believe knowing that clearly may help.&lt;BR /&gt;&lt;BR /&gt;Newport_j</description>
      <pubDate>Wed, 15 Feb 2012 20:16:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741153#M488</guid>
      <dc:creator>newport_j</dc:creator>
      <dc:date>2012-02-15T20:16:56Z</dc:date>
    </item>
    <item>
      <title>icc and gcc</title>
      <link>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741154#M489</link>
      <description>The two includes that seem consistent placed throughout the c functions (subprograms) are:&lt;BR /&gt;&lt;BR /&gt;#include&lt;STDLIB.H&gt;&lt;BR /&gt;#include&lt;STDIO.&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Some files math.h on them also, but not all.&lt;BR /&gt;&lt;BR /&gt;Any help appreciated. Thanks in adavnce.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Newport_j&lt;/STDIO.&gt;&lt;/STDLIB.H&gt;</description>
      <pubDate>Thu, 16 Feb 2012 17:11:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741154#M489</guid>
      <dc:creator>IDZ_A_Intel</dc:creator>
      <dc:date>2012-02-16T17:11:45Z</dc:date>
    </item>
    <item>
      <title>icc and gcc</title>
      <link>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741155#M490</link>
      <description>Ok, I think I know the problem. The 12.0 compiler doesn't support Ubuntu 11.04. Can you upgrade to C++ Composer XE 2011 update 6 or later (current release is update 8, and update 9 should be coming soon) which contains the 12.1 compiler which does support 11.04 and see if that helps?</description>
      <pubDate>Fri, 17 Feb 2012 00:19:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/icc-and-gcc/m-p/741155#M490</guid>
      <dc:creator>Brandon_H_Intel</dc:creator>
      <dc:date>2012-02-17T00:19:52Z</dc:date>
    </item>
  </channel>
</rss>

