<?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 Strange Compile error with Intel CC in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Strange-Compile-error-with-Intel-CC/m-p/1497361#M3141</link>
    <description>&lt;P&gt;I try to use the last version of the Intel C Compler and successuflly added it into Visual Studio 2022.&lt;/P&gt;&lt;P&gt;I run into an compiler error that I dont get rid off.&lt;/P&gt;&lt;P&gt;We used to apply prototype definitions often using forward definitions for structs, like this:&lt;/P&gt;&lt;P&gt;Prototype in a header file:&lt;/P&gt;&lt;P&gt;void testfoo(struct _FAA *nn);&lt;/P&gt;&lt;P&gt;C-Code:&lt;/P&gt;&lt;P&gt;typedef struct _FAA&lt;BR /&gt;{&lt;BR /&gt;int b;&lt;BR /&gt;}FAA;&lt;/P&gt;&lt;P&gt;void testfoo(FAA *aa)&lt;BR /&gt;{&lt;BR /&gt;aa-&amp;gt;b = 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;On compiling I get this error:&lt;/P&gt;&lt;P&gt;code.c(277,6): : error : conflicting types for 'testfoo'&lt;BR /&gt;1&amp;gt;void testfoo(FAA *aa)&lt;BR /&gt;1&amp;gt; ^&lt;BR /&gt;1&amp;gt;code.h(204,6): note: previous declaration is here&lt;BR /&gt;1&amp;gt;void testfoo(struct _FAA *nn);&lt;BR /&gt;1&amp;gt; ^&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems the compiler doesnt like our forward declations of structs, but why ?&lt;/P&gt;&lt;P&gt;This was not a problem with the compiler 2 years ago, but now with the recent&lt;/P&gt;&lt;P&gt;download.&lt;/P&gt;&lt;P&gt;Any tips ? Maybe a compiler flag that I missed ?&lt;/P&gt;&lt;P&gt;Thanks you!&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2023 09:45:32 GMT</pubDate>
    <dc:creator>MG12</dc:creator>
    <dc:date>2023-06-20T09:45:32Z</dc:date>
    <item>
      <title>Strange Compile error with Intel CC</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Strange-Compile-error-with-Intel-CC/m-p/1497361#M3141</link>
      <description>&lt;P&gt;I try to use the last version of the Intel C Compler and successuflly added it into Visual Studio 2022.&lt;/P&gt;&lt;P&gt;I run into an compiler error that I dont get rid off.&lt;/P&gt;&lt;P&gt;We used to apply prototype definitions often using forward definitions for structs, like this:&lt;/P&gt;&lt;P&gt;Prototype in a header file:&lt;/P&gt;&lt;P&gt;void testfoo(struct _FAA *nn);&lt;/P&gt;&lt;P&gt;C-Code:&lt;/P&gt;&lt;P&gt;typedef struct _FAA&lt;BR /&gt;{&lt;BR /&gt;int b;&lt;BR /&gt;}FAA;&lt;/P&gt;&lt;P&gt;void testfoo(FAA *aa)&lt;BR /&gt;{&lt;BR /&gt;aa-&amp;gt;b = 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;On compiling I get this error:&lt;/P&gt;&lt;P&gt;code.c(277,6): : error : conflicting types for 'testfoo'&lt;BR /&gt;1&amp;gt;void testfoo(FAA *aa)&lt;BR /&gt;1&amp;gt; ^&lt;BR /&gt;1&amp;gt;code.h(204,6): note: previous declaration is here&lt;BR /&gt;1&amp;gt;void testfoo(struct _FAA *nn);&lt;BR /&gt;1&amp;gt; ^&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems the compiler doesnt like our forward declations of structs, but why ?&lt;/P&gt;&lt;P&gt;This was not a problem with the compiler 2 years ago, but now with the recent&lt;/P&gt;&lt;P&gt;download.&lt;/P&gt;&lt;P&gt;Any tips ? Maybe a compiler flag that I missed ?&lt;/P&gt;&lt;P&gt;Thanks you!&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 09:45:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Strange-Compile-error-with-Intel-CC/m-p/1497361#M3141</guid>
      <dc:creator>MG12</dc:creator>
      <dc:date>2023-06-20T09:45:32Z</dc:date>
    </item>
    <item>
      <title>Re:Strange Compile error with Intel CC</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Strange-Compile-error-with-Intel-CC/m-p/1497647#M3142</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;Since this is a duplicate thread of &lt;A href="https://community.intel.com/t5/Intel-C-Compiler/Moved-Strange-compiler-error-on-forward-declarations/m-p/1497397#M41027" target="_blank"&gt;https://community.intel.com/t5/Intel-C-Compiler/Moved-Strange-compiler-error-on-forward-declarations/m-p/1497397#M41027&lt;/A&gt;, we will no longer monitor this thread. We will continue addressing this issue in the other thread.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Noorjahan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jun 2023 05:47:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Strange-Compile-error-with-Intel-CC/m-p/1497647#M3142</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-06-21T05:47:11Z</dc:date>
    </item>
  </channel>
</rss>

