<?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 Compiling intel sgx application through visual studio command prompt in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Compiling-intel-sgx-application-through-visual-studio-command/m-p/1144506#M2379</link>
    <description>&lt;P&gt;Is there any way to compile an intel-sgx app (and specifically- the untrusted part) in visual studio's command prompt so that&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;the that header file and libraries will be recognized at compilation?&lt;/P&gt;</description>
    <pubDate>Sun, 25 Feb 2018 20:41:51 GMT</pubDate>
    <dc:creator>leibovitz__sarah</dc:creator>
    <dc:date>2018-02-25T20:41:51Z</dc:date>
    <item>
      <title>Compiling intel sgx application through visual studio command prompt</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Compiling-intel-sgx-application-through-visual-studio-command/m-p/1144506#M2379</link>
      <description>&lt;P&gt;Is there any way to compile an intel-sgx app (and specifically- the untrusted part) in visual studio's command prompt so that&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;the that header file and libraries will be recognized at compilation?&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 20:41:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Compiling-intel-sgx-application-through-visual-studio-command/m-p/1144506#M2379</guid>
      <dc:creator>leibovitz__sarah</dc:creator>
      <dc:date>2018-02-25T20:41:51Z</dc:date>
    </item>
    <item>
      <title>The easiest way is to run the</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Compiling-intel-sgx-application-through-visual-studio-command/m-p/1144507#M2380</link>
      <description>&lt;P&gt;The easiest way is to use the "MSBUILD" utility that comes with Visual Studio to give you the exact commands to build either the Enclave or the App on the command line.&lt;/P&gt;

&lt;P&gt;Here are the few settings that you may need:&lt;/P&gt;

&lt;P&gt;To include the current directory in the search:&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG style="font-size: 1em;"&gt;set INCLUDE=.;%INCLUDE%&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;To include "rc.exe" in the build of the app:&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;set PATH=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin;%PATH%&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Here is how you can compile and build:&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;msbuild /p:useenv=true Enclave.vcxproj&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;and&amp;nbsp;&lt;STRONG&gt;&lt;SPAN style="font-size: 13.008px;"&gt;msbuild /p:useenv=true App.vcxproj&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Here is an example of build command for the untrusted app:&lt;/P&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\CL.exe /c /I"C:\Program Files (x86)\Intel\IntelSGXSDK\\include" /IC:\Cxx11SGXDemo\App\\Include /I"C:\Program Files (x86)\Intel\IntelSGXSDK\\include\epid" /IC:\Cxx11SGXDemo\App\\App /Zi /nologo /W2 /WX /Od /Oy- /D _MBCS /D _MBCS /Gm /EHsc /RTC1 /MDd /GS /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc140.pdb" /Gd /TP /analyze- /errorReport:queue App.cpp TrustedLibrary\Libcxx.cpp&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Cxx11SGXDemo\App\Debug\App.exe" /INCREMENTAL /NOLOGO /LIBPATH:"C:\Program Files (x86)\Intel\IntelSGXSDK\\bin\Win32\Debug" /WX sgx_uae_service.lib sgx_urts.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /NODEFAULTLIB:libcmtd.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:\Cxx11SGXDemo\App\Debug\App.pdb" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Cxx11SGXDemo\App\Debug\App.lib" /MACHINE:X86 Debug\App.obj Debug\Enclave_u.obj Debug\Libcxx.obj&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 01:40:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Compiling-intel-sgx-application-through-visual-studio-command/m-p/1144507#M2380</guid>
      <dc:creator>Hoang_N_Intel</dc:creator>
      <dc:date>2018-02-27T01:40:42Z</dc:date>
    </item>
  </channel>
</rss>

