Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ socket
I download a source code from internet, wanna do some testing in my pc, however i cant debug since the system showing me the error that i state in the subject above,
i had install WinPcap..try to Google, no results, any idea why am i getting this error? and how to get this solve and allow me to debug
 
https://lh4.googleusercontent.com/-WmsqM_QuL-w/UAejIwT1oaI/AAAAAAAAAKs/0E_SvIe8ZSs/s567/Fullscreen+capture+1972012+20156+PM.jpg[^]
Posted 18-Jul-12 21:07pm
Edited 18-Jul-12 21:08pm
v2
Comments
nv3 at 19-Jul-12 2:20am
   
Perhaps because file packet.h is not in your source directory. Look at the directory structure you have downloaded. Perhaps there is a subdirectory "include" that contains the missing file. In this case you have to adjust the include directory path in your compiler or project settings.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

From looking at your screen capture, it looks like the project requires the WinPCap[^] library (makes sense since its essentially a library of packet definitions). You need to download the library and install it then add the installation path as one of your default paths or an "additional include directory" (that's why it was included using the #include <packet.h> instead of #include "packet.h").
  Permalink  
v2
Comments
Sandeep Mewara at 19-Jul-12 23:00pm
   
Looks like that should resolve for sure. My 5!
Albert Holguin at 20-Jul-12 11:30am
   
Thanks... saw the pragma comment that included the library on his screen capture.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

AFAIK, It means that 'Packet.h' file is missing or corrupt and thus cannot be opened.
 
Not too sure, if this is the same one or not, you can copy and provide the file to your project: Wincap: Packet.h[^]
  Permalink  
Comments
Albert Holguin at 19-Jul-12 15:03pm
   
See my solution...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 410
1 Sergey Alexandrovich Kryukov 329
2 Afzaal Ahmad Zeeshan 264
3 BillWoodruff 235
4 CPallini 195
0 OriginalGriff 5,560
1 DamithSL 4,476
2 Maciej Los 3,942
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 19 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100