转自VC错误:http://www.vcerror.com/?p=2039
问题描述:
-------------------Configuration: 2 - Win32 Debug--------------------
Compiling...
2.cpp
error C2065: 'pcap_findalldevs_ex' : undeclared identifier
error C2065: 'PCAP_SRC_IF_STRING' : undeclared identifier
error C2065: 'pcap_open' : undeclared identifier
error C2065: 'PCAP_OPENFLAG_PROMISCUOUS' : undeclared identifier
error C2440: '=' : cannot convert from 'int' to 'struct pcap *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
执行 cl.exe 时出错.
解决方法:
具体的解决方法参考文章: http://www.vcerror.com/?p=2039
问题描述:
-------------------Configuration: 2 - Win32 Debug--------------------
Compiling...
2.cpp
error C2065: 'pcap_findalldevs_ex' : undeclared identifier
error C2065: 'PCAP_SRC_IF_STRING' : undeclared identifier
error C2065: 'pcap_open' : undeclared identifier
error C2065: 'PCAP_OPENFLAG_PROMISCUOUS' : undeclared identifier
error C2440: '=' : cannot convert from 'int' to 'struct pcap *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
执行 cl.exe 时出错.
2.obj - 1 error(s), 0 warning(s)
具体的解决方法参考文章: http://www.vcerror.com/?p=2039
本文解决了一个关于VC编译时出现的多个未声明标识符的错误问题,包括'pcap_findalldevs_ex'等函数及宏定义未被正确识别的情况,并提供了解决方案。

4721

被折叠的 条评论
为什么被折叠?



