[Winpcap-bugs] Error compiling the source code
Gianluca Varenni
gianluca.varenni at cacetech.com
Tue Nov 4 16:16:19 GMT 2008
You probably forgot to add the preprocessor definitions
WPCAP and HAVE_REMOTE in your code.
Do the samples in the developer's pack compile ok?
Have a nice day
GV
----- Original Message -----
From: Mikuš Michal
To: winpcap-bugs at winpcap.org
Sent: Monday, October 20, 2008 1:49 AM
Subject: [Winpcap-bugs] Error compiling the source code
Hi,
I,m having the latest release - Winpcap 4.1beta4
Here's the output of windump:
C:\Documents and Settings\michal\Plocha\windump>windump -D
1.\Device\NPF_GenericDialupAdapter (Adapter for generic dialup and VPN capture)
2.\Device\NPF_{A5814810-BA3D-40D0-A9EF-4C6FEF7EA467} (Intel(R) PRO/100 VE Network Connection (Microsoft's Packet Scheduler) )
Windows XP Professional, Version 2002, Service Pack 2
I'm experiencing the following error while trying to compile my source code in Microsoft Visual Studio 6.0:
d:\dokumenty\cwork\winpcap4_1beta4\s.cpp(21) : error C2065: 'pcap_findalldevs_ex' : undeclared identifier
d:\dokumenty\cwork\winpcap4_1beta4\s.cpp(21) : error C2065: 'PCAP_SRC_IF_STRING' : undeclared identifier
d:\dokumenty\cwork\winpcap4_1beta4\s.cpp(58) : error C2065: 'pcap_open' : undeclared identifier
d:\dokumenty\cwork\winpcap4_1beta4\s.cpp(61) : error C2065: 'PCAP_OPENFLAG_PROMISCUOUS' : undeclared identifier
d:\dokumenty\cwork\winpcap4_1beta4\s.cpp(65) : 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
Error executing cl.exe.
winpcap4_1beta4.exe - 5 error(s), 0 warning(s)
The code is the one in your tutorial - Capturing the packets without the callback.
I have done the recommendations mentioned in tutorial - Using WinPcap in your programs
I beg you to reply to my message about possible solution and not just put it among the rest of the reports.
I would really appreciate it.
Michal Mikuš
__________ Informacia od ESET NOD32 Antivirus, verzia databazy 3537 (20081020) __________
Tuto spravu preveril ESET NOD32 Antivirus.
http://www.eset.sk
------------------------------------------------------------------------------
_______________________________________________
Winpcap-bugs mailing list
Winpcap-bugs at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-bugs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-bugs/attachments/20081104/302e0a45/attachment.htm
More information about the Winpcap-bugs
mailing list