How to link lpcap and libnet [message #168239] |
Sun, 16 April 2006 22:16  |
Eclipse User |
|
|
|
Originally posted by: priyandika.hotmail.com
This is a multi-part message in MIME format.
------=_NextPart_000_0030_01C661CD.551DE3D0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
How to link lpcap and libnet
=20
Hi All,
=20
I was trying to compile "myprogram" using lpcap and libnet.
=20
gcc myprogram.c -lpcap -lnet `libnet-config --defines` -o myprogram
=20
I am using "Managed make C project"
I have included the above under CDT
=20
c/c++ build =E0 GCC C compiler =E0 command options.
=20
Unfortunately this wouldn't work.=20
Now I am not sure where to include the compilation parameters.
=20
Should I edit the Make file manually ?
=20
Any advice/ help would be very much appreciated.=20
=20
Best regards,
Suranjith
=20
=20
------=_NextPart_000_0030_01C661CD.551DE3D0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>How to link=20
lpcap and libnet</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB><?xml:namespace=20
prefix =3D o ns =3D "urn:schemas-microsoft-com:office:office"=20
/><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN lang=3DEN-GB>Hi =
All,</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN lang=3DEN-GB>I =
was trying to=20
compile =93myprogram=94 using lpcap and libnet.</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>gcc myprogram.c=20
-lpcap -lnet `libnet-config --defines` -o myprogram</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN lang=3DEN-GB>I =
am using=20
=93Managed make C project=94</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN lang=3DEN-GB>I =
have included=20
the above under CDT</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>c/c++ build=20
</SPAN><SPAN lang=3DEN-GB=20
style=3D"FONT-FAMILY: Wingdings; mso-ascii-font-family: 'Times New =
Roman'; mso-hansi-font-family: 'Times New Roman'; mso-char-type: symbol; =
mso-symbol-font-family: Wingdings; mso-no-proof: yes"><SPAN=20
style=3D"mso-char-type: symbol; mso-symbol-font-family: =
Wingdings">=E0</SPAN></SPAN><SPAN=20
lang=3DEN-GB> GCC C compiler </SPAN><SPAN lang=3DEN-GB=20
style=3D"FONT-FAMILY: Wingdings; mso-ascii-font-family: 'Times New =
Roman'; mso-hansi-font-family: 'Times New Roman'; mso-char-type: symbol; =
mso-symbol-font-family: Wingdings; mso-no-proof: yes"><SPAN=20
style=3D"mso-char-type: symbol; mso-symbol-font-family: =
Wingdings">=E0</SPAN></SPAN><SPAN=20
lang=3DEN-GB> command options.</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>Unfortunately=20
this wouldn=92t work. </SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>Now I am not=20
sure where to include the compilation parameters.</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>Should I edit=20
the Make file manually ?</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>Any advice/ help=20
would be very much appreciated. </SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>Best=20
regards,</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB>Suranjith</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P></BODY></HTML >
------=_NextPart_000_0030_01C661CD.551DE3D0--
|
|
|
Re: How to link lpcap and libnet [message #168257 is a reply to message #168239] |
Mon, 17 April 2006 09:02  |
Eclipse User |
|
|
|
Originally posted by: priyandika.hotmail.com
This is a multi-part message in MIME format.
------=_NextPart_000_0048_01C66227.A2DB1070
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I managed to sort this out, thanks anyway.
"Suranjith" <priyandika@hotmail.com> wrote in message =
news:e1utq3$etv$1@utils.eclipse.org...
How to link lpcap and libnet
=20
Hi All,
=20
I was trying to compile "myprogram" using lpcap and libnet.
=20
gcc myprogram.c -lpcap -lnet `libnet-config --defines` -o myprogram
=20
I am using "Managed make C project"
I have included the above under CDT
=20
c/c++ build =E0 GCC C compiler =E0 command options.
=20
Unfortunately this wouldn't work.=20
Now I am not sure where to include the compilation parameters.
=20
Should I edit the Make file manually ?
=20
Any advice/ help would be very much appreciated.=20
=20
Best regards,
Suranjith
=20
=20
------=_NextPart_000_0048_01C66227.A2DB1070
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o =3D "urn:schemas-microsoft-com:office:office"><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I managed to sort this out, thanks=20
anyway.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Suranjith" <<A=20
href=3D"mailto:priyandika@hotmail.com">priyandika@hotmail.com</A>> =
wrote in=20
message <A=20
=
href=3D"news:e1utq3$etv$1@utils.eclipse.org">news:e1utq3$etv$1@utils.ecli=
pse.org</A>...</DIV>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>How to link=20
lpcap and libnet</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>Hi=20
All,</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>I was trying=20
to compile =93myprogram=94 using lpcap and libnet.</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>gcc=20
myprogram.c -lpcap -lnet `libnet-config --defines` -o =
myprogram</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>I am using=20
=93Managed make C project=94</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>I have=20
included the above under CDT</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>c/c++ build=20
</SPAN><SPAN lang=3DEN-GB=20
style=3D"FONT-FAMILY: Wingdings; mso-ascii-font-family: 'Times New =
Roman'; mso-hansi-font-family: 'Times New Roman'; mso-char-type: symbol; =
mso-symbol-font-family: Wingdings; mso-no-proof: yes"><SPAN=20
style=3D"mso-char-type: symbol; mso-symbol-font-family: =
Wingdings">=E0</SPAN></SPAN><SPAN=20
lang=3DEN-GB> GCC C compiler </SPAN><SPAN lang=3DEN-GB=20
style=3D"FONT-FAMILY: Wingdings; mso-ascii-font-family: 'Times New =
Roman'; mso-hansi-font-family: 'Times New Roman'; mso-char-type: symbol; =
mso-symbol-font-family: Wingdings; mso-no-proof: yes"><SPAN=20
style=3D"mso-char-type: symbol; mso-symbol-font-family: =
Wingdings">=E0</SPAN></SPAN><SPAN=20
lang=3DEN-GB> command options.</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>Unfortunately=20
this wouldn=92t work. </SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>Now I am not=20
sure where to include the compilation parameters.</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>Should I edit=20
the Make file manually ?</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>Any advice/=20
help would be very much appreciated. </SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN =
lang=3DEN-GB>Best=20
regards,</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB>Suranjith</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
lang=3DEN-GB><o:p> </o:p></SPAN></P></BLOCKQUOTE ></BODY></HTML>
------=_NextPart_000_0048_01C66227.A2DB1070--
|
|
|
Powered by
FUDForum. Page generated in 0.05230 seconds