title: Issue with Compiling Binary for Windows
body: <p>I am trying to compile the code from github here: <a href="https://github.com/ayeks/SGX-hardware/blob/master/test-sgx.c" rel="nofollow noreferrer">https://github.com/ayeks/SGX-hardware/blob/master/test-sgx.c</a></p>
  
  <p>I have Visual Studio 2010 and I am compiling using (cl), the command line version of Visual Studio and it gives me the following compiling errors:</p>
  
  <pre><code>sgx_check.c(6) : error C2054: expected '(' to follow 'inline'
  sgx_check.c(8) : error C2085: 'native_cpuid' : not in formal parameter list
  sgx_check.c(8) : error C2143: syntax error : missing ';' before '{'
  sgx_check.c(88) : error C2143: syntax error : missing ';' before 'type'
  sgx_check.c(89) : error C2065: 'i' : undeclared identifier
  sgx_check.c(89) : error C2065: 'i' : undeclared identifier
  sgx_check.c(89) : error C2065: 'i' : undeclared identifier
  sgx_check.c(91) : error C2065: 'i' : undeclared identifier
  sgx_check.c(91) : error C2065: 'i' : undeclared identifier
  sgx_check.c(93) : error C2065: 'i' : undeclared identifier
  </code></pre>
  
  <p>The command used to compile the code is:</p>
  
  <pre><code>cl sgx_check.c
  </code></pre>
  
  <p>I checked the compiler error messages and I cannot fix them.</p>
  
  <p>I can fix the error messages for 'i' as an undeclared identifier by moving the "int i" line to the beginning of main() function.</p>
  
  <p>I would like to learn how to compile this binary in all the details.</p>