LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-30-2004, 02:06 PM   #1
WhiteDevel
LQ Newbie
 
Registered: Jun 2004
Location: Nepal
Distribution: Slackware 10.2
Posts: 15

Rep: Reputation: 0
NetWork Programming....


i am writing a packet sniffer program for my final year project in computer engieering.

while progress i found a library named libpcap from tcpdump.org which provides a lot of functions for network programming.

But where i got stuck is my program is not linking the libpcap library.
Actually i am new in using c in a linux platform and i am not getting how the library files are linked in the c programs

So i need you people here please help me out
 
Old 07-30-2004, 02:33 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
Add -lpcap to the compile line.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
network programming using C bastin_gh Programming 4 06-29-2005 05:58 PM
SOS on network programming galaxier Linux - Networking 1 04-08-2005 12:20 PM
Network Programming Questions - please help pavgust Programming 2 03-29-2004 02:37 PM
tcl network programming cadj Linux - Networking 0 09-28-2003 07:37 AM
Network Programming Sifvion Linux - Networking 6 05-24-2003 06:12 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration