title: fatal error C1083: Cannot open include file: 'Windows.h': and scons
body: <p>Today is officially my first day with C++ :P</p>
  
  <p>I've downloaded Visual C++ 2005 Express Edition and Microsoft Platform SDK for Windows Server 2003 SP1, because I want to get my hands on the open source <a href="http://code.google.com/p/enso" rel="nofollow noreferrer">Enso Project</a>. </p>
  
  <p>So, after installing scons I went to the console and tried to compile it using scons, but I got this error: </p>
  
  <pre><code>C:\oreyes\apps\enso\enso-read-only\src\platform\win32\Include\WinSdk.h(64) : fatal error C1083: Cannot open include file: 'Windows.h': No such file or directory
  scons: *** [src\platform\win32\InputManager\AsyncEventProcessorRegistry.obj] Error 2
  scons: building terminated because of errors.
  </code></pre>
  
  <p>After checking these links:</p>
  
  <p><a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1135164&amp;SiteID=1" rel="nofollow noreferrer">VS ans PSDK</a></p>
  
  <p><a href="https://stackoverflow.com/questions/160938/fatal-error-c1083-cannot-open-include-file-tiffioh-no-such-file-or-directory-vc#160957">Include tiffi.h</a></p>
  
  <p><a href="https://stackoverflow.com/questions/80788/fatal-error-c1083-cannot-open-include-file-windowsh-no-such-file-or-directory#81226">Wndows.h</a></p>
  
  <p>I've managed to configure my installation like this:</p>
  
  <p><img src="https://i.stack.imgur.com/z41N8.png" alt="alt text"></p>
  
  <p>And even run this script </p>
  
  <p><img src="https://i.stack.imgur.com/1rB1L.png" alt="alt text"></p>
  
  <p>And I managed to compile the file below in the IDE.</p>
  
  <pre><code>// Test.cpp : Defines the entry point for the console application.
  //
  
  #include "stdafx.h"
  #include &lt;Windows.h&gt;
  
  
  int _tmain(int argc, _TCHAR* argv[])
  {
      return 0;
  }
  </code></pre>
  
  <p>But I still get that exception in the console. Does anyone have scons experience?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Actually (and I forgot to tell you this) I started the command prompt with the link "Visual Studio 2005 Command Prompt".</p>
  
  <p>I assume this will include the paths in environment variables. Well after printing them I find that it didn't:</p>
  
  <pre><code> echo %INCLUDE%
   echo %LIB%
   echo %PATH% 
  </code></pre>
  
  <p>And they were not present, so I created this .bat file:</p>
  
  <pre><code>set PATH=%PATH%;"C:\Program Files\Microsoft Platform SDK\Bin"
  set INCLUDE=%INCLUDE%;"C:\ Program Files\Microsoft Platform SDK\Include"
  set LIB=%LIB%;"C:\ Program Files\Microsoft Platform SDK\Lib"
  </code></pre>
  
  <p>Still, scons seeems not to take the vars... :( </p>