[Winpcap-users] pcap_getevent external symbol not found

Bryan Kadzban bryan at kadzban.is-a-geek.net
Fri Feb 10 19:12:49 GMT 2006


matt jaffa wrote:
> LNK2019: unresolved external symbol "void * __cdecl
> pcap_getevent(struct pcap *)" (?pcap_getevent@@YAPAXPAUpcap@@@Z)

It looks like the compiler is mangling the name (like all C++ compilers
do).  But I would bet that the actual function in the DLL is not mangled
-- this means you need to enclose its declaration in:

extern "C" {

// declaration goes here

}

just like any other C function that you would need to call.

Or turn off C++ entirely, if Microsoft's compiler will even let you do that.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://www.winpcap.org/pipermail/winpcap-users/attachments/20060210/6d34bd07/signature.pgp


More information about the Winpcap-users mailing list