<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-AU;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1446075925;
        mso-list-type:hybrid;
        mso-list-template-ids:1769755988 1314684664 201916419 201916421 201916417 201916419 201916421 201916417 201916419 201916421;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;
        color:#1F497D;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-AU link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Chin Shi Hong ,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I’ve copied the sample code from <a href="http://www.winpcap.org/docs/docs_411/html/group__wpcap__tut3.html">http://www.winpcap.org/docs/docs_411/html/group__wpcap__tut3.html</a> and it works fine...<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The difference is:<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><span style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I’m using Visual Studio 2008 Professional (Not Visual C++ Express edition)</span><o:p></o:p></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><span style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I created an empty Windows Console project (no precompiled header or stdafx files)</span><o:p></o:p></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><span style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I added 1 file: test.cpp</span><o:p></o:p></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><span style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I followed most of the steps under the heading “</span><i>Visual Studio 2005 (needed to compile x64 applications” </i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> in </span><a href="http://www.winpcap.org/docs/docs_411/html/group__wpcapsamps.html" target="_blank">http://www.winpcap.org/docs/docs_411/html/group__wpcapsamps.html</a><o:p></o:p></p><p class=MsoListParagraph style='margin-left:72.0pt;text-indent:-18.0pt;mso-list:l0 level2 lfo1'><![if !supportLists]><span style='font-family:"Courier New"'><span style='mso-list:Ignore'>o<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I didn’t add the pre-processor definitions</span><o:p></o:p></p><p class=MsoListParagraph style='margin-left:72.0pt;text-indent:-18.0pt;mso-list:l0 level2 lfo1'><![if !supportLists]><span style='font-family:"Courier New"'><span style='mso-list:Ignore'>o<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I just added extra the extra include directories and extra library dirs.</span>.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Perhaps start the project again, copy the code into a single test.cpp file like I have done (AND DON’T ALTER IT) and if it still doesn’t work I’d be definitely pointing at the “Express Edition” as the cause of those errors, probably due to limited functionality of that edition.<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>-KB<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> winpcap-users-bounces@winpcap.org [mailto:winpcap-users-bounces@winpcap.org] <b>On Behalf Of </b>Chin Shi Hong<br><b>Sent:</b> Tuesday, 1 June 2010 5:05 PM<br><b>To:</b> winpcap-users@winpcap.org<br><b>Subject:</b> Re: [Winpcap-users] Error compiling WinPcap based applications by using Visual C++ 2008<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Mon, May 31, 2010 at 9:52 AM, Kyle Brotheridge <<a href="mailto:kyle@connecttel.com.au">kyle@connecttel.com.au</a>> wrote:<o:p></o:p></p><p class=MsoNormal>Do you #include <pcap.h> first?<br><br>You shouldn't need to include any other WinPCAP header other than the above, my project compiles fine and uses the headers in the following order:<br><br>#pragma region Includes and Libs<br>// Disable CRT warnings on functions that are now deemed 'unsafe'<br>#define _CRT_SECURE_NO_WARNINGS<br><br>#include <pcap.h><br>#include <winsock.h><br>#include <iphlpapi.h><br>#include <stdio.h><br><br>// Non-standard LIBs to include<br>#pragma comment(lib, "wpcap.lib")<br>#pragma comment(lib, "packet.lib")<br>#pragma comment(lib, "ws2_32.lib")<br>#pragma comment(lib, "iphlpapi.lib")<br>#pragma endregion<br><br>-KB<br><br><br>---------------<br><br>From: <a href="mailto:winpcap-users-bounces@winpcap.org">winpcap-users-bounces@winpcap.org</a> [mailto:<a href="mailto:winpcap-users-bounces@winpcap.org">winpcap-users-bounces@winpcap.org</a>] On Behalf Of Chin Shi Hong<br>Sent: Sunday, 30 May 2010 3:36 PM<br>To: <a href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</a><br>Subject: [Winpcap-users] Error compiling WinPcap based applications by using Visual C++ 2008<o:p></o:p></p><div><div><p class=MsoNormal><br>Dear all,<br><br>I am new to WinPcap, I had followed the instructions showed at <a href="http://www.winpcap.org/docs/docs_411/html/group__wpcapsamps.html" target="_blank">http://www.winpcap.org/docs/docs_411/html/group__wpcapsamps.html</a> . When I try to compile the codes I get from <a href="http://www.winpcap.org/docs/docs_411/html/group__wpcap__tut3.html" target="_blank">http://www.winpcap.org/docs/docs_411/html/group__wpcap__tut3.html</a> , by using Visual C++ 2008 Express Edition on Windows 7 Home Premium 64-bit edition, I get the following errors:<br><br>1>------ Build started: Project: network, Configuration: Debug Win32 ------<br>1>Compiling...<br>1>network.cpp<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(68) : error C2146: syntax error : missing ';' before identifier 'bpf_u_int32'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(68) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(68) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(105) : error C2146: syntax error : missing ';' before identifier 'bv_major'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(105) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(105) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(106) : error C2146: syntax error : missing ';' before identifier 'bv_minor'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(106) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(106) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(905) : error C2146: syntax error : missing ';' before identifier 'code'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(905) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(905) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(906) : error C2146: syntax error : missing ';' before identifier 'jt'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(906) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(906) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(907) : error C2146: syntax error : missing ';' before identifier 'jf'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(907) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(907) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(908) : error C2146: syntax error : missing ';' before identifier 'k'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(908) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(908) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(919) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\bpf.h(919) : error C2143: syntax error : missing ',' before '*'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(130) : error C2146: syntax error : missing ';' before identifier 'magic'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(130) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(130) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(131) : error C2146: syntax error : missing ';' before identifier 'version_major'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(131) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(131) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(132) : error C2146: syntax error : missing ';' before identifier 'version_minor'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(132) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(132) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(134) : error C2146: syntax error : missing ';' before identifier 'sigfigs'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(134) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(134) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(135) : error C2146: syntax error : missing ';' before identifier 'snaplen'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(135) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(135) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(136) : error C2146: syntax error : missing ';' before identifier 'linktype'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(136) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(136) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(168) : error C2079: 'pcap_pkthdr::ts' uses undefined struct 'timeval'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(169) : error C2146: syntax error : missing ';' before identifier 'caplen'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(169) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(169) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(170) : error C2146: syntax error : missing ';' before identifier 'len'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(170) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(170) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(228) : error C2146: syntax error : missing ';' before identifier 'flags'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(228) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(228) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(244) : error C2065: 'u_char' : undeclared identifier<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(244) : error C2059: syntax error : ','<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(272) : error C2061: syntax error : identifier 'bpf_u_int32'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(299) : error C2061: syntax error : identifier 'pcap_handler'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(300) : error C2061: syntax error : identifier 'pcap_handler'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(301) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(301) : error C2143: syntax error : missing ';' before '*'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(302) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(303) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(303) : error C2143: syntax error : missing ',' before '*'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(311) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(311) : error C2143: syntax error : missing ',' before '*'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(317) : error C2061: syntax error : identifier 'bpf_u_int32'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(319) : error C2061: syntax error : identifier 'bpf_u_int32'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(322) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(322) : error C2143: syntax error : missing ',' before '*'<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(346) : error C2059: syntax error : ','<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(354) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\files\wpdpack_4_1_1\wpdpack\include\pcap\pcap.h(354) : error C2143: syntax error : missing ',' before '*'<br>1>c:\users\user\documents\visual studio 2008\projects\network\network\network.cpp(4) : error C2065: 'param' : undeclared identifier<br>1>c:\users\user\documents\visual studio 2008\projects\network\network\network.cpp(4) : error C2059: syntax error : 'const'<br>1>c:\users\user\documents\visual studio 2008\projects\network\network\network.cpp(19) : error C3861: 'exit': identifier not found<br>1>c:\users\user\documents\visual studio 2008\projects\network\network\network.cpp(74) : error C2065: 'packet_handler' : undeclared identifier<br>1>c:\users\user\documents\visual studio 2008\projects\network\network\network.cpp(81) : error C2065: 'param' : undeclared identifier<br>1>c:\users\user\documents\visual studio 2008\projects\network\network\network.cpp(81) : error C2059: syntax error : 'const'<br>1>c:\users\user\documents\visual studio 2008\projects\network\network\network.cpp(82) : error C2143: syntax error : missing ';' before '{'<br>1>c:\users\user\documents\visual studio 2008\projects\network\network\network.cpp(82) : error C2447: '{' : missing function header (old-style formal list?)<br>1>Build log was saved at "<a href="file:///c:\Users\user\Documents\Visual%20Studio%202008\Projects\network\network\Debug\BuildLog.htm">file://c:\Users\user\Documents\Visual Studio 2008\Projects\network\network\Debug\BuildLog.htm</a>"<br>1>network - 78 error(s), 0 warning(s)<br>========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========<br><br>How to solve it?<o:p></o:p></p></div></div><p class=MsoNormal>_______________________________________________<br>Winpcap-users mailing list<br><a href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</a><br><a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><o:p></o:p></p><div><p class=MsoNormal> <o:p></o:p></p></div></div><p class=MsoNormal>I did include the header file. I just copy and paste the source code from <a href="http://www.winpcap.org/docs/docs_411/html/group__wpcap__tut3.html">http://www.winpcap.org/docs/docs_411/html/group__wpcap__tut3.html</a> to visual c++. The source code on that website only include pcap.h header file.<o:p></o:p></p></div></body></html>