LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 10-24-2011, 10:27 PM   #1
vip2442
LQ Newbie
 
Registered: Sep 2011
Posts: 21

Rep: Reputation: Disabled
i586-mingw32msvc-gcc and -lpcap


Hi there,

I compile and run libpcap c files using
#gcc file.c -lpcap
and it works fine, now I want to make the c file as .exe to run it on windows so i'm trying
#i586-mingw32msvc-gcc -o file.exe file.c -lpcap
but I don't know how to link it to libpcap libraries !!

any idea ?

Thanks
 
Old 10-26-2011, 10:31 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,818

Rep: Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005
Hello,

I am reporting this thread to be closed, since it is a duplicate of the following thread - https://www.linuxquestions.org/quest...-devel-910055/

Cheers,

Josh
 
Old 10-27-2011, 02:58 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
Closing the original in favour of the more sensibly placed dupe.
 
  


Closed Thread


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
Error building cross gcc-3.3.2 for i386-mingw32msvc target ugenn Linux - Software 2 10-05-2012 03:33 AM
cannot find -lpcap nasim751 Linux - Software 2 02-14-2008 09:13 AM
new version of lpcap? cynthia_thomas Programming 1 01-22-2006 03:04 AM
How to uninstall lpcap Hammo Linux - Software 0 01-06-2004 05:18 AM
gcc-3.1-1mdk.i586.rpm aizkorri Linux - Software 7 08-20-2002 03:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:05 AM.

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