<?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 Option '-TC' in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Option-TC/m-p/1346609#M1780</link>
    <description>&lt;P&gt;Just installed Intel's oneAPI and it's compiler dpcpp.exe.&lt;/P&gt;
&lt;P&gt;Trying it to compile a C-project of mine seems impossible w/o a major rewrite.&lt;/P&gt;
&lt;P&gt;Seems to me it only supports C++ even when using "dpcpp -TC ...". Rather disappointing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many warnings on stuff like "&lt;STRONG&gt;char *p = malloc (len);&lt;/STRONG&gt;"&amp;nbsp;causing&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;error: cannot initialize a variable of type 'char *' with an rvalue of type 'void *'&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what's the option "&lt;STRONG&gt;-TC&lt;/STRONG&gt;" really for?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Edit: &lt;/EM&gt;Switching to &lt;STRONG&gt;icx.exe&lt;/STRONG&gt; did the trick.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 25 Dec 2021 13:32:50 GMT</pubDate>
    <dc:creator>GisleVanem</dc:creator>
    <dc:date>2021-12-25T13:32:50Z</dc:date>
    <item>
      <title>Option '-TC'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Option-TC/m-p/1346609#M1780</link>
      <description>&lt;P&gt;Just installed Intel's oneAPI and it's compiler dpcpp.exe.&lt;/P&gt;
&lt;P&gt;Trying it to compile a C-project of mine seems impossible w/o a major rewrite.&lt;/P&gt;
&lt;P&gt;Seems to me it only supports C++ even when using "dpcpp -TC ...". Rather disappointing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many warnings on stuff like "&lt;STRONG&gt;char *p = malloc (len);&lt;/STRONG&gt;"&amp;nbsp;causing&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;error: cannot initialize a variable of type 'char *' with an rvalue of type 'void *'&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what's the option "&lt;STRONG&gt;-TC&lt;/STRONG&gt;" really for?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Edit: &lt;/EM&gt;Switching to &lt;STRONG&gt;icx.exe&lt;/STRONG&gt; did the trick.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Dec 2021 13:32:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Option-TC/m-p/1346609#M1780</guid>
      <dc:creator>GisleVanem</dc:creator>
      <dc:date>2021-12-25T13:32:50Z</dc:date>
    </item>
    <item>
      <title>Re:Option '-TC'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Option-TC/m-p/1346777#M1782</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; So what's the option "-TC" really for?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This option tells the compiler to process all source or unrecognized file types as C source files.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For more information, please refer to the link mentioned below.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/compiler-reference/compiler-options/compiler-option-details/miscellaneous-options/tc-1.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/compiler-reference/compiler-options/compiler-option-details/miscellaneous-options/tc-1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please provide us with a sample reproducer along with the compiler version being used so that we can investigate your issue from our end.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Ditipriya.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Dec 2021 10:45:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Option-TC/m-p/1346777#M1782</guid>
      <dc:creator>DitiD_Intel</dc:creator>
      <dc:date>2021-12-27T10:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Option '-TC'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Option-TC/m-p/1346872#M1786</link>
      <description>&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;Could you please provide us with a sample reproducer along with the compiler version being used so that we can investigate your issue from our end.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Here is a simple example GNU-makefile (called dpcpp-test.mak) or attached:&lt;/P&gt;
&lt;P&gt;------------- 8&amp;lt; --- 8&amp;lt; -----------&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;CFLAGS = -MD -TC&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;all: dpcpp-test.exe&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;dpcpp-test.exe: dpcpp-test.obj&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; xilink -out:dpcpp-test.exe $&amp;lt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;dpcpp-test.obj: dpcpp-test.c&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; dpcpp $(CFLAGS) -Fo$@ $&amp;lt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;dpcpp-test.c: dpcpp-test.mak&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; $(info Generating $@)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; $(file &amp;gt; $@,$(dpcpp-test_C))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;define dpcpp-test_C&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; //&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; // Generated file. DO NOT EDIT!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; //&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; #include &amp;lt;stdio.h&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; #include &amp;lt;stdlib.h&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; int main (void)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; char *p = malloc(1000);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; printf ("p: 0x%p\n", p);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; p ? free(p) : ((void)0);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; return (0);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;endef&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;------------- 8&amp;lt; --- 8&amp;lt; -----------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Issuing make -f&amp;nbsp;dpcpp-test.mak, gives:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Generating dpcpp-test.c&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;dpcpp -MD -TC -Fodpcpp-test.obj dpcpp-test.c&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;dpcpp-test.c(8,11): error: cannot initialize a variable of type 'char *' with an rvalue of type 'void *'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;char *p = malloc(1000);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;^ ~~~~~~~~~~~~&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;1 error generated.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Enough said.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Dec 2021 18:49:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Option-TC/m-p/1346872#M1786</guid>
      <dc:creator>GisleVanem</dc:creator>
      <dc:date>2021-12-27T18:49:50Z</dc:date>
    </item>
    <item>
      <title>Re:Option '-TC'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Option-TC/m-p/1348967#M1806</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;DPC++ will support only c++ code from c++ 17 and onwards. Hence -TC option does not work.&lt;/P&gt;&lt;P&gt;It is working with icx and icx in windows works for both c as well as c++ code. So, it is behaving correctly.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Ditipriya.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Jan 2022 09:30:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Option-TC/m-p/1348967#M1806</guid>
      <dc:creator>DitiD_Intel</dc:creator>
      <dc:date>2022-01-06T09:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Option '-TC'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Option-TC/m-p/1348977#M1807</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;nbsp; Hence -TC option does not work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A &lt;STRONG&gt;dpcpp -?&lt;/STRONG&gt; lists it as an valid option.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Time to clean-up this options mess? &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 09:59:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Option-TC/m-p/1348977#M1807</guid>
      <dc:creator>GisleVanem</dc:creator>
      <dc:date>2022-01-06T09:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Option '-TC'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Option-TC/m-p/1349968#M1818</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please confirm the OS you're using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For windows, /TC is a valid option, however for linux, -TC is not listed as a valid option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Ditipriya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 10:05:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Option-TC/m-p/1349968#M1818</guid>
      <dc:creator>DitiD_Intel</dc:creator>
      <dc:date>2022-01-10T10:05:33Z</dc:date>
    </item>
    <item>
      <title>Re:Option '-TC'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Option-TC/m-p/1351919#M1836</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We've not heard back from you. Can you please provide an update?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Ditipriya.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jan 2022 11:14:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Option-TC/m-p/1351919#M1836</guid>
      <dc:creator>DitiD_Intel</dc:creator>
      <dc:date>2022-01-17T11:14:23Z</dc:date>
    </item>
    <item>
      <title>Re:Option '-TC'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Option-TC/m-p/1353336#M1851</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.&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;Ditipriya.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Jan 2022 05:17:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Option-TC/m-p/1353336#M1851</guid>
      <dc:creator>DitiD_Intel</dc:creator>
      <dc:date>2022-01-21T05:17:31Z</dc:date>
    </item>
  </channel>
</rss>

