<p>I'm trying to get IKVM to build (see <a href="https://stackoverflow.com/questions/71599/how-to-get-ikvm-to-build-in-visual-studio-2008">this question</a>) but now have encountered a problem not having to do with IKVM so I'm opening up a new question:</p>

<p>When running nant on the IKVM directory with the Visual Studio 2008 Command Prompt (from the Start Menu), I get the following error:</p>

<blockquote>
<pre><code>        ikvm-native-win32:

               [cl] Compiling 2 files to C:\ikvm-0.36.0.11\native\Release'.

               [cl] jni.c
               [cl] os.c
               [cl] C:\ikvm-0.36.0.11\native\os.c(25) : fatal error C1083: Cannot open include file: 'windows.h': No such
                    file or directory
               [cl] Generating Code...

        BUILD FAILED

        C:\ikvm-0.36.0.11\native\native.build(17,10):
        External Program Failed: cl (return code was 2)
</code></pre>
</blockquote>

<p>I have the Platform SDK installed. What am I missing? I'm sure it's something simple...</p>

<p><strong>Edit #1</strong> I just checked - I do have the directory containing windows.h on the Path.
<strong>Edit #2</strong> Found the answer (see my answer below): The directory containing windows.h needed to be in the "Include" path variable.</p>

[{'answer_id': 81226, 'author': 'Epaga', 'author_id': 6583, 'author_profile': 'https://Stackoverflow.com/users/6583', 'pm_score': 4, 'selected': True, 'text': '<p>OK here is the answer I ended up finding: rather than being on the Path, the directory with windows.h (in my case, C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\Include) needed to be set in the Include environment variable.</p>\n'}, {'answer_id': 446658, 'author': 'abatishchev', 'author_id': 41956, 'author_profile': 'https://Stackoverflow.com/users/41956', 'pm_score': 1, 'selected': False, 'text': '<p>By the way, create environment variable %LIB%, meaning the same - path to all SDKs lib directories</p>\n'}]
['https://Stackoverflow.com/questions/80788', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6583/']