为什么显示错误:无法打开源文件"packet.h"? [英] Why it is showing error:cannot open source file“packet.h"

查看:200
本文介绍了为什么显示错误:无法打开源文件"packet.h"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从互联网上下载了源代码,想在PC上进行一些测试,但是由于系统显示出我在上述主题中指出的错误,因此我无法调试,
我已经将WinPcap..try安装到Google,没有结果,为什么我会收到此错误?以及如何解决这个问题,并让我进行调试

I download a source code from internet, wanna do some testing in my pc, however i cant debug since the system showing me the error that i state in the subject above,
i had install WinPcap..try to Google, no results, any idea why am i getting this error? and how to get this solve and allow me to debug

https://lh4.googleusercontent.com/-WmsqM_QuL-w/UAejIwT1oaI/AAAAAAAAAKs/0E_SvIe8ZSs/s567/Fullscreen+capture+1972012+20156+PM.jpg[^]

推荐答案

从您的屏幕截图来看,该项目似乎需要 WinPCap [ ^ ]库(之所以有意义,是因为它本质上是一个数据包定义库) .您需要下载该库并进行安装,然后将安装路径添加为默认路径之一或附加包含目录"(这就是为什么使用#include <packet.h>而不是#include "packet.h"包含该目录的原因).
From looking at your screen capture, it looks like the project requires the WinPCap[^] library (makes sense since its essentially a library of packet definitions). You need to download the library and install it then add the installation path as one of your default paths or an "additional include directory" (that''s why it was included using the #include <packet.h> instead of #include "packet.h").


AFAIK,这意味着"Packet.h"文件丢失或损坏,因此无法打开.

不太确定,是否相同,您可以将文件复制并提供到您的项目中: ^ ]
AFAIK, It means that ''Packet.h'' file is missing or corrupt and thus cannot be opened.

Not too sure, if this is the same one or not, you can copy and provide the file to your project: Wincap: Packet.h[^]


这篇关于为什么显示错误:无法打开源文件"packet.h"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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