Either you aren't linking the required libraries, or you aren't including the correct headers.<br><br>
<div><span class="gmail_quote">On 4/25/06, <b class="gmail_sendername">Cirix MAN</b> <<a href="mailto:cirixman@hotmail.com">cirixman@hotmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello with all developers,<br><br>I am currently trying to produce tools in C++ allowing to post the flow of a
<br>connection UDP on an interface. I used one of the tutorials of the WinPcap<br>library in order to create a filter allowing to print in the screen only UDP<br>packet on a port specified by the user. Unfortunately, I have some problems
<br>to compile the tutorial statistical WinpCap. Indeed, with Microsft Visual<br>C++ Studio, I obtain the following errors :<br><br>c:\documents and settings\administrateur\mes<br>documents\wpdpack\examples-pcap\ttt\cpp2.cpp(30) : error C2065: 'pcap_open'
<br>: undeclared identifier<br>c:\documents and settings\administrateur\mes<br>documents\wpdpack\examples-pcap\ttt\cpp2.cpp(30) : error C2065:<br>'PCAP_OPENFLAG_PROMISCUOUS' : undeclared identifier<br>c:\documents and settings\administrateur\mes
<br>documents\wpdpack\examples-pcap\ttt\cpp2.cpp(30) : error C2440: '=' : cannot<br>convert from 'int' to 'struct pcap *'<br> Conversion from integral type to pointer type requires<br>reinterpret_cast, C-style cast or function-style cast
<br><br>I use this same source code :<br><br><a href="http://www.winpcap.org/docs/docs31/html/group__wpcap__tut9.html">http://www.winpcap.org/docs/docs31/html/group__wpcap__tut9.html</a><br><br>Have already succeeds in itself compiling this code?
<br><br>Thank you in advance, With kind regards<br><br>_________________________________________________________________<br>Retrouvez tout en un clin d'oeil avec la barre d'outil MSN Search !<br><a href="http://desktop.msn.fr/">
http://desktop.msn.fr/</a><br><br>_______________________________________________<br>Winpcap-users mailing list<br><a href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</a><br><a href="https://www.winpcap.org/mailman/listinfo/winpcap-users">
https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Mess with the best, die like the rest