<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hi.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>The problem is that you are probably including
win32_extensions.h directly in your sources. That file is an internal header
file, missing the normal "extern "C" {}" declarations.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>You should only include pcap.h and add the preprocessor
definition WPCAP in order to use the Windows specific extensions to the pcap
library. </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Have a nice day</FONT></DIV>
<DIV><FONT size=2>GV</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=mjaffa@gmail.com href="mailto:mjaffa@gmail.com">matt jaffa</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=winpcap-users@winpcap.org
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, February 10, 2006 9:06
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Winpcap-users] pcap_getevent
external symbol not found</DIV>
<DIV><BR></DIV>
<DIV id=mb_0>
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>So I am using the windows pcap_getevent call in my program, but when It
goes to link, it throws the error: </DIV>
<DIV>LNK2019: unresolved external symbol "void * __cdecl pcap_getevent(struct
pcap *)" (<A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:?pcap_getevent@@YAPAXPAUpcap@@@Z "
target=_blank>?pcap_getevent@@YAPAXPAUpcap@@@Z </A>) </DIV>
<DIV> </DIV>
<DIV>I am linking in the wpcap.lib and packet.lib and using wpcap version 3.1,
why am I getting the above error?</DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV><SPAN class=sg>
<DIV>Matt</DIV></SPAN></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Winpcap-users
mailing
list<BR>Winpcap-users@winpcap.org<BR>https://www.winpcap.org/mailman/listinfo/winpcap-users<BR></BLOCKQUOTE></BODY></HTML>