[Winpcap-users] dumb question ;(

Alex Radetsky rad at rad.kiev.ua
Thu Mar 30 16:25:04 GMT 2006


Hello, everybody!

 Please excuse me for my very dumb question, Ok?

 First, I install https://www.winpcap.org/install/bin/WinPcap_3_1.exe
 on my Windows XP machine.
 Second, I download WpdPack 3.1 from winpcap.org, following the instructions
 I was unpacking it and place to desired folder.

 I use Visual C++ 6.0 for applications creating. In some my class
 method I declared

 pcap_if_t *alldevs;

 and got "undeclared identifier" error from compiler.

 Following the instructions from WpdPack documentaion I insert
 #include <pcap.h> to my .cpp file, adding wpcap.lib as additional
 libraries, adding "include" and "lib" directories to additional
 directories for MSVC (Tools/Options/Directories).

 But still got the "undeclared identifier" error.
 error C2065: 'pcap_if_t' : undeclared identifier

 Where I was wrong? It seems like "pcap.h" is not including,
 but why compiler does not say it to me?

 Can anyone tell me where I was wrong? Some FAQ?

 I understand that is very dump question and I can't find answer via
 google :)

 PS. While reading mail archive I was added HAVE_REMOTE and WPCAP to
 the preprocessor definitions, but still no luck?

 Have some ideas? Thank you very much.

 
-- 
/me from ~
rad at rad.kiev.ua



More information about the Winpcap-users mailing list