使用VC++编译为什么总是出现这个小错误?

--------------------Configuration:svchost-Win32Release--------------------Compiling..... --------------------Configuration: svchost - Win32 Release--------------------
Compiling...
svchost.cpp
D:\gh0st\Server\svchost\common/resetssdt.h(4) : fatal error C1083: Cannot open include file: 'hackerbing.h': No such file or directory
执行 cl.exe 时出错.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Release\svchost.sbr': No such file or directory
执行 bscmake.exe 时出错.

asycfilts.dll - 1 error(s), 0 warning(s)

在这里我已经把头文件加上了 如下:
#include <windows.h>
#include <shlwapi.h>
#include <winioctl.h>
#include <hackerbing.h>

#include "resource.h"

,为什么老是提示找不到头文件?
展开
 我来答
匿名用户
2009-02-24
展开全部
对于#include <XXX.h> ,编译器从标准库路径开始搜索XXX.h
对于#include“XXX.h” ,编译器从用户的工作路径开始搜索XXX.h

如果你的hackerbing.h是用户自己编写的文件的话,
用#include“hackerbing.h”

如果还找不到,就用绝对路径,例如:
#include "d:\myprojects\helloworld\inc\helloworld.h"
BlueWanderer
2009-02-24 · TA获得超过9210个赞
知道大有可为答主
回答量:5673
采纳率:83%
帮助的人:2106万
展开全部
如果那个头文件是你自己写的那应该是
#include "hackerbing.h"

#include<>不会搜cpp的当前文件夹
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式