"Brian Mays" <[EMAIL PROTECTED]> said:

> OK.  I freely admit I'm too stupid to live, but I'm running Winpcap
> 3.0-Alpha 4 on WinNt 4.0-SP6 with MS VC++ 6.0 using MFC and get an error
> message trying to link my project with the pcap_read_ex function.  The
> pcap_loop and pcap_dispatch functions link without a problem, but I am
> trying to avoid them because of the callbacks.
> 
> What library must I include to avoid the error shown below.  Thanks very
> much for your help:-)
> 
> Linking...
> RegisterMonView.obj : error LNK2001: unresolved external symbol "int __cdecl
> pcap_read_ex(struct pcap *,struct pcap_pkthdr * *,unsigned char * *)"
> (?pcap_read_ex@@YAHPAUpcap@@PAPAUpcap_pkthdr@@PAPAE@Z)
> Debug/RegisterMon.exe : fatal error LNK1120: 1 unresolved externals

Are you including the pcap_read_ex() prototype in you own C++ source?
If so, did you remember to use the "extern "C" modifier?

Get a recent libpcap*.tar.gz from ww.tcpdump.org where this is fixed.
It wasn't in pcap.h included with latest WinPcap wpdpack.

Gisle V.



==================================================================
 This is the WinPcap users list. It is archived at
 http://www.mail-archive.com/[email protected]/

 To unsubscribe use 
 mailto: [EMAIL PROTECTED]?body=unsubscribe
==================================================================

Reply via email to