[Winpcap-users] error in sample program "Obtaining the device list"

Gianluca Varenni gianluca.varenni at cacetech.com
Sat Dec 5 19:02:38 PST 2009


Did you add the wpdpack include and lib directory in your Visual studio project as explained here:

http://www.winpcap.org/docs/docs_411/html/group__wpcapsamps.html

?

Have a nice day
GV
  ----- Original Message ----- 
  From: sameer kathawate 
  To: winpcap-users at winpcap.org 
  Sent: Friday, December 04, 2009 11:41 PM
  Subject: [Winpcap-users] error in sample program "Obtaining the device list"


  Hi Team,

  Recently i came across winpcap.org and I am learning winpcap programming through the tutorials you provided.
  I came across this linker problem. Can you please help me?


  Compiling...
  open_adapter.c
  C:\Documents and Settings\sameer\Desktop\open\open_adapter.c(47) : warning C4013: 'pcap_findalldevs_ex' undefined; assuming extern returning int
  C:\Documents and Settings\sameer\Desktop\open\open_adapter.c(59) : warning C4013: 'pcap_freealldevs' undefined; assuming extern returning int
  C:\Documents and Settings\sameer\Desktop\open\open_adapter.c(126) : warning C4013: '_snprintf_s' undefined; assuming extern returning int
  C:\Documents and Settings\sameer\Desktop\open\open_adapter.c(141) : warning C4013: 'getnameinfo' undefined; assuming extern returning int
  Linking...
  open_adapter.obj : error LNK2001: unresolved external symbol _pcap_freealldevs
  open_adapter.obj : error LNK2001: unresolved external symbol _pcap_findalldevs_ex
  open_adapter.obj : error LNK2001: unresolved external symbol __snprintf_s
  open_adapter.obj : error LNK2001: unresolved external symbol _getnameinfo
  Debug/open_adapter.exe : fatal error LNK1120: 4 unresolved externals
  Error executing link.exe.

  -- 
  Regards

  Sameer Kathawate



------------------------------------------------------------------------------


  _______________________________________________
  Winpcap-users mailing list
  Winpcap-users at winpcap.org
  https://www.winpcap.org/mailman/listinfo/winpcap-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20091205/bfacf601/attachment.htm 


More information about the Winpcap-users mailing list