智能感知不能打开源文件“* .h” [英] Intellisense cannot open source file "*.h"

查看:150
本文介绍了智能感知不能打开源文件“* .h”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道可能发生了什么。我删除了一些库添加到VC文件夹和附加依赖(OpenGL库我已经添加),然后当我试图编译我的程序,我收到了100错误。问题是,我当前的项目不能识别一些标准的标题。这是我得到的:

I have no idea as to what may have happened. I was removing a few libraries I added to the VC folder and from Additional Dependencies (OpenGL libraries I've added), then when I tried to compile my program, I received 100 errors. The problem is that my current project is not recognizing some of the standard headers. Here is what I've got:

#include <Windows.h>    <-----Error from title
#include <stdio.h>      <-----Error from title
#include <stdlib.h>     <-----Error from title
#include "stdafx.h"     <-----OK
#include <CommCtrl.h>   <-----Error from title

我创建了一个新项目, ,但没有注意到有什么缺失。有没有人知道为什么项目不使用这些头?

I've created a new project to compare it's properties, but didn't notice anything missing. Does anyone have an idea as to why project isn't using these headers?

推荐答案

确保你有所有这些路径 VC ++目录 - > 包括目录

Make sure you have all these paths under VC++ directories->Include Directories:

$(VCInstallDir)include; $(VCInstallDir)atlmfc\include; $(WindowsSDK_IncludePath);

这篇关于智能感知不能打开源文件“* .h”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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