8

我不知道可能发生了什么。我正在删除一些我添加到 VC 文件夹和附加依赖项(我添加的 OpenGL 库)中的库,然后当我尝试编译我的程序时,我收到了 100 个错误。问题是我当前的项目无法识别某些标准标题。这是我所拥有的:

#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

我创建了一个新项目来比较它的属性,但没有发现任何缺失。有谁知道为什么项目不使用这些标题?

4

2 回答 2

15
于 2013-06-11T08:30:52.207 回答
2

Just an update on previous answer, in VS2015, the previous method of including directories has been deprecated. Its now done on a per-solution basis. In the solution explorer right click your Project Name, then select properties, the dialog that opens up is similar to older VS. Add the paths as suggested above to the include directories and away you go.

于 2016-01-18T21:54:15.670 回答