转自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