致命错误C1083 - 无法打开包含文件:" WINDOWS.H":没有这样的文件或目录 [英] Fatal Error C1083 - Cannot open include file: "windows.h": No such file or directory

查看:1425
本文介绍了致命错误C1083 - 无法打开包含文件:" WINDOWS.H":没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,伙计们, 我试图让IKVM建设(见这问题),但现在也遇到没有做IKVM所以我打开了一个新的问题一个问题:

在iKVM上的目录与Visual Studio 2008的命令提示符下运行恶性(从开始菜单),我得到以下错误:

  IKVM-本机的Win32:

               [CL]编译两个文件到C:\ IKVM-0.36.0.11 \本地\发布。

               [CL] jni.c
               [CL] os.c
               [CL] C:\ IKVM-0.36.0.11 \本地\ os.c(25):致命错误C1083:无法打开包含文件:WINDOWS.H:没有这样的
                    文件或目录
               [CL]生成code ...

        构建失败

        C:\ IKVM-0.36.0.11 \本地\ native.build(17,10):
        外部程序失败:CL(返程code为2)
 

我已经安装了平台SDK。我在想什么?我敢肯定这件事情简单...

编辑#1 我刚才检查 - 我做对路径包含目录WINDOWS.H。 修改#2 找到了答案(见我的回答如下):要在包括路径变量所需的含有WINDOWS.H目录

解决方案

确定这里就是答案我最终发现:而不是在道路,与WINDOWS.H目录(在我的情况下,C:\ Program Files文件\微软的SDK \的Windows \ v6.0A \包含)所需要的包括环境变量设置。

Hey guys, I'm trying to get IKVM to build (see this question) but now have encountered a problem not having to do with IKVM so I'm opening up a new question:

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

        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)

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

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

解决方案

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.

这篇关于致命错误C1083 - 无法打开包含文件:" WINDOWS.H":没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆