Click here to Skip to main content
11,704,107 members (57,441 online)
Rate this: bad
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[^]
Posted 18-Jul-12 20:07pm
Edited 18-Jul-12 20:08pm
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
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").
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
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[^]
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 Sergey Alexandrovich Kryukov 745
1 OriginalGriff 520
2 Maciej Los 475
3 Andy Lanng 284
4 CPallini 275
0 OriginalGriff 8,784
1 Sergey Alexandrovich Kryukov 7,843
2 CPallini 5,107
3 Maciej Los 4,726
4 Mika Wendelius 3,606

Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 19 Jul 2012
Copyright © CodeProject, 1999-2015
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