<?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 Getting &amp;quot;error MSB6006: &amp;quot;xilib.exe&amp;quot; exited with code 1&amp;quot;  while building Static library in VS2019 wit in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Getting-quot-error-MSB6006-quot-xilib-exe-quot-exited-with-code/m-p/1465000#M2895</link>
    <description>&lt;P&gt;Hello INtel Team,&lt;/P&gt;
&lt;P&gt;I am trying to build&amp;nbsp; a static library (in VS2022 with Intel C++ oneApi DPC++ 2023 compiler as an extension added to VS2022 x64 bit version)&lt;/P&gt;
&lt;P&gt;MS compiler generates the library without any issues.&lt;/P&gt;
&lt;P&gt;When i try to generate the same library using Intel C++ 2023 compiler it gives me this error:&lt;/P&gt;
&lt;P&gt;1&amp;gt;/&amp;lt;XFGHASHMAP&amp;gt;/: not a COFF object, bitcode, archive, import library or resource file&lt;BR /&gt;1&amp;gt;C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Platforms\x64\PlatformToolsets\Intel C++ Compiler 2023\Toolset.targets(1191,5): error MSB6006: "xilib.exe" exited with code 1.&lt;/P&gt;
&lt;P&gt;the file giving error is:&amp;nbsp;Toolset.targets&amp;nbsp; (line 1191, &amp;lt;XILIB&amp;nbsp; &amp;nbsp;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;find attached the file:&amp;nbsp;&amp;nbsp;Toolset.targets&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone tell me what is the issue here?&lt;/P&gt;
&lt;P&gt;Do i need to do some modifications in this file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2023 13:34:20 GMT</pubDate>
    <dc:creator>pankaj1982</dc:creator>
    <dc:date>2023-03-13T13:34:20Z</dc:date>
    <item>
      <title>Getting "error MSB6006: "xilib.exe" exited with code 1"  while building Static library in VS2019 wit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Getting-quot-error-MSB6006-quot-xilib-exe-quot-exited-with-code/m-p/1465000#M2895</link>
      <description>&lt;P&gt;Hello INtel Team,&lt;/P&gt;
&lt;P&gt;I am trying to build&amp;nbsp; a static library (in VS2022 with Intel C++ oneApi DPC++ 2023 compiler as an extension added to VS2022 x64 bit version)&lt;/P&gt;
&lt;P&gt;MS compiler generates the library without any issues.&lt;/P&gt;
&lt;P&gt;When i try to generate the same library using Intel C++ 2023 compiler it gives me this error:&lt;/P&gt;
&lt;P&gt;1&amp;gt;/&amp;lt;XFGHASHMAP&amp;gt;/: not a COFF object, bitcode, archive, import library or resource file&lt;BR /&gt;1&amp;gt;C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Platforms\x64\PlatformToolsets\Intel C++ Compiler 2023\Toolset.targets(1191,5): error MSB6006: "xilib.exe" exited with code 1.&lt;/P&gt;
&lt;P&gt;the file giving error is:&amp;nbsp;Toolset.targets&amp;nbsp; (line 1191, &amp;lt;XILIB&amp;nbsp; &amp;nbsp;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;find attached the file:&amp;nbsp;&amp;nbsp;Toolset.targets&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone tell me what is the issue here?&lt;/P&gt;
&lt;P&gt;Do i need to do some modifications in this file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 13:34:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Getting-quot-error-MSB6006-quot-xilib-exe-quot-exited-with-code/m-p/1465000#M2895</guid>
      <dc:creator>pankaj1982</dc:creator>
      <dc:date>2023-03-13T13:34:20Z</dc:date>
    </item>
    <item>
      <title>Re:Getting "error MSB6006: "xilib.exe" exited with code 1"  while building Static library in VS2019 wit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Getting-quot-error-MSB6006-quot-xilib-exe-quot-exited-with-code/m-p/1465493#M2900</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;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please provide a sample reproducer along with the steps to reproduce your issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you also specify your Visual Studio 2022 sub version?&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;Shaik Rabiya&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Mar 2023 09:53:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Getting-quot-error-MSB6006-quot-xilib-exe-quot-exited-with-code/m-p/1465493#M2900</guid>
      <dc:creator>RabiyaSK_Intel</dc:creator>
      <dc:date>2023-03-14T09:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting "error MSB6006: "xilib.exe" exited with code 1"  while building Stat</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Getting-quot-error-MSB6006-quot-xilib-exe-quot-exited-with-code/m-p/1465540#M2903</link>
      <description>&lt;P&gt;Thanks for taking a look.&lt;/P&gt;
&lt;P&gt;I found the cause of this issue. This was due to a missing dependent dll file that xilib was not able to find (it was not generated separately).&lt;/P&gt;
&lt;P&gt;I have a few questions about IntelOneApi DPC++ compiler though. Could you answer these questions for me:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. How to disable specific warnings coming only for Intel C++ compiler.&lt;/P&gt;
&lt;P&gt;ex. pragma unmanaged is used by MS VS C++ compiler, but its shown as warning during Intel DPC++ compilation:&lt;/P&gt;
&lt;P&gt;FoundationEx\UI\SflToolBarEx.cpp(41,9): : warning : unknown pragma ignored [-Wunknown-pragmas]&lt;BR /&gt;1&amp;gt;#pragma unmanaged&lt;/P&gt;
&lt;P&gt;How to suppress these warnings?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Can you tell me a #define which I can use for conditional compilation of some code for Intel C++ Compiler. (that works in MS VS2022)&lt;/P&gt;
&lt;P&gt;all Intel Compiler Specific code I would like to enclose in these #ifdef ........&amp;nbsp; thing&lt;/P&gt;
&lt;P&gt;ex. in windows we have _DEBUG.&lt;/P&gt;
&lt;P&gt;#ifdef _DEBUG&lt;/P&gt;
&lt;P&gt;&amp;nbsp; TRACE("DEBUG MESSAGE GOES HERE\N");&lt;/P&gt;
&lt;P&gt;#endif&lt;/P&gt;
&lt;P&gt;What should i use for Intel C++ compiler to wrap conditional compilation code in our library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. There is a warning coming when using MFC code in our library, shown below. Its a standard MFC based command&lt;/P&gt;
&lt;P&gt;routing thing used by MFC framework.&lt;/P&gt;
&lt;P&gt;FoundationEx\UI\SflToolBarEx.cpp(61,1): : warning : unused typedef 'ThisClass' [-Wunused-local-typedef]&lt;BR /&gt;1&amp;gt;BEGIN_MESSAGE_MAP(SFLToolBarEx, CMFCToolBar)&lt;BR /&gt;1&amp;gt;^&lt;BR /&gt;1&amp;gt;C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\atlmfc\include\afxwin.h(1262,20): note: expanded from macro 'BEGIN_MESSAGE_MAP'&lt;BR /&gt;1&amp;gt; typedef theClass ThisClass; \&lt;BR /&gt;1&amp;gt; ^&lt;/P&gt;
&lt;P&gt;please find attached the sample program (MFCApplication4.zip)&amp;nbsp; that can showcase this warning.&lt;/P&gt;
&lt;P&gt;How to get rid of this warning?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are trying to port our library code from MS VS compiler to support IntelOneApi compiler 2023 support.&lt;/P&gt;
&lt;P&gt;Thanks in Advance,&lt;/P&gt;
&lt;P&gt;Pankaj.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 13:45:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Getting-quot-error-MSB6006-quot-xilib-exe-quot-exited-with-code/m-p/1465540#M2903</guid>
      <dc:creator>pankaj1982</dc:creator>
      <dc:date>2023-03-14T13:45:20Z</dc:date>
    </item>
    <item>
      <title>Re:Getting "error MSB6006: "xilib.exe" exited with code 1"  while building Static library in VS2019 wit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Getting-quot-error-MSB6006-quot-xilib-exe-quot-exited-with-code/m-p/1466536#M2919</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Glad to know that your initial issue is resolved. Thanks for&amp;nbsp;sharing the solution with us. As your initial query is solved could you please post your&amp;nbsp;questions with sample reproducers on Intel oneAPI DPC++ compiler forum, as this thread will no longer be monitored by Intel? We would definitely assist you on your new 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;Shaik Rabiya&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Mar 2023 10:07:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Getting-quot-error-MSB6006-quot-xilib-exe-quot-exited-with-code/m-p/1466536#M2919</guid>
      <dc:creator>RabiyaSK_Intel</dc:creator>
      <dc:date>2023-03-16T10:07:03Z</dc:date>
    </item>
  </channel>
</rss>

