<?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 Re: one-API sample compiles with CMake but not Visual Studio in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/one-API-sample-compiles-with-CMake-but-not-Visual-Studio/m-p/1460148#M2863</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in Intel communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;Some oneAPI DPC++ sample code projects compile within Visual Studio and some do not.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Could you please let us know the list of sample projects which are not compiling at your end?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From your screenshot, we can see that in your console application there are two mains(one from vector-add-buffers.cpp and another from vector-add-usm.cpp). So, please try to avoid giving more than one main or try using Cmake.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;Is there some property that needs to be set within VS?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Please find the below link to set the properties for implementing DPC++ projects.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/get-started-with-dpcpp-compiler/top/get-started-on-windows.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/develop/documentation/get-started-with-dpcpp-compiler/top/get-started-on-windows.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use the Intel oneAPI command prompt to run the code.&lt;/P&gt;
&lt;P&gt;Please refer to the below screenshot for more details:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicrosoftTeams-image (1).png" style="width: 681px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/38484i19AF6EA2C80BEF1E/image-dimensions/681x362?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="681" height="362" role="button" title="MicrosoftTeams-image (1).png" alt="MicrosoftTeams-image (1).png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your issue still persists, Please let us know the Visual studio version and sub-version(Help--&amp;gt;About Microsoft Visual Studio) you are using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Vankudothu Vaishnavi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2023 11:36:51 GMT</pubDate>
    <dc:creator>VaishnaviV_Intel</dc:creator>
    <dc:date>2023-02-28T11:36:51Z</dc:date>
    <item>
      <title>one-API sample compiles with CMake but not Visual Studio</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/one-API-sample-compiles-with-CMake-but-not-Visual-Studio/m-p/1459988#M2860</link>
      <description>&lt;P&gt;Some oneAPI DPC++ sample code projects compile within Visual Studio and some do not - for example dpc-vector-add, though it compiles and runs using CMake. Is there some property that needs to be set within VS to avoid compilation errors such as those in attached screenshot?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 01:19:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/one-API-sample-compiles-with-CMake-but-not-Visual-Studio/m-p/1459988#M2860</guid>
      <dc:creator>itl-dag</dc:creator>
      <dc:date>2023-02-28T01:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: one-API sample compiles with CMake but not Visual Studio</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/one-API-sample-compiles-with-CMake-but-not-Visual-Studio/m-p/1460148#M2863</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in Intel communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;Some oneAPI DPC++ sample code projects compile within Visual Studio and some do not.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Could you please let us know the list of sample projects which are not compiling at your end?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From your screenshot, we can see that in your console application there are two mains(one from vector-add-buffers.cpp and another from vector-add-usm.cpp). So, please try to avoid giving more than one main or try using Cmake.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;Is there some property that needs to be set within VS?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Please find the below link to set the properties for implementing DPC++ projects.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/get-started-with-dpcpp-compiler/top/get-started-on-windows.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/develop/documentation/get-started-with-dpcpp-compiler/top/get-started-on-windows.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use the Intel oneAPI command prompt to run the code.&lt;/P&gt;
&lt;P&gt;Please refer to the below screenshot for more details:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicrosoftTeams-image (1).png" style="width: 681px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/38484i19AF6EA2C80BEF1E/image-dimensions/681x362?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="681" height="362" role="button" title="MicrosoftTeams-image (1).png" alt="MicrosoftTeams-image (1).png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your issue still persists, Please let us know the Visual studio version and sub-version(Help--&amp;gt;About Microsoft Visual Studio) you are using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Vankudothu Vaishnavi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 11:36:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/one-API-sample-compiles-with-CMake-but-not-Visual-Studio/m-p/1460148#M2863</guid>
      <dc:creator>VaishnaviV_Intel</dc:creator>
      <dc:date>2023-02-28T11:36:51Z</dc:date>
    </item>
    <item>
      <title>Re:one-API sample compiles with CMake but not Visual Studio</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/one-API-sample-compiles-with-CMake-but-not-Visual-Studio/m-p/1462101#M2874</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Has the information provided above helped? If yes, could you please confirm whether we can close this thread 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;Vankudothu Vaishnavi.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Mar 2023 08:52:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/one-API-sample-compiles-with-CMake-but-not-Visual-Studio/m-p/1462101#M2874</guid>
      <dc:creator>VaishnaviV_Intel</dc:creator>
      <dc:date>2023-03-06T08:52:34Z</dc:date>
    </item>
    <item>
      <title>Re:one-API sample compiles with CMake but not Visual Studio</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/one-API-sample-compiles-with-CMake-but-not-Visual-Studio/m-p/1464080#M2887</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.&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;Vankudothu Vaishnavi.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Mar 2023 06:35:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/one-API-sample-compiles-with-CMake-but-not-Visual-Studio/m-p/1464080#M2887</guid>
      <dc:creator>VaishnaviV_Intel</dc:creator>
      <dc:date>2023-03-10T06:35:54Z</dc:date>
    </item>
  </channel>
</rss>

