我如何告诉 cmake 执行这两个步骤来使用 winpcap?
引自此处:
如果您的程序使用Win32特定函数的 WinPcap,请记住在预处理器定义中包含 WPCAP。
如果您的程序使用 WinPcap 的远程捕获功能,请在预处理器定义中添加 HAVE_REMOTE。不要将remote-ext.h 直接包含在源文件中。
有人设法将 winpcap 与 cmake 一起使用吗?
Quoted from here:
If your program uses Win32 specific functions of WinPcap, remember to include WPCAP among the preprocessor definitions.
If your program uses the remote capture capabilities of WinPcap, add HAVE_REMOTE among the preprocessor definitions. Do not include remote-ext.h directly in your source files.
Has anyone managed to use winpcap with cmake?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
像这样的事情应该这样做:
Something like this should do it: