LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to compile a C program in Glade which is included the <pcap.h> header file. (https://www.linuxquestions.org/questions/programming-9/how-to-compile-a-c-program-in-glade-which-is-included-the-pcap-h-header-file-160526/)

swaviswa 03-21-2004 07:47 AM

How to compile a C program in Glade which is included the <pcap.h> header file.
 
Hi

My name is Viswanadh. I am learning Network programming and i am doin a project using C language. I am also interested to do the GUI programming with the glade.

I learned the Glade,but i am having a problem while compling the code of <pcap.h> header file in Glade.

Normally the <pcap.h> header file included in C program is compiled as

"gcc new.c -lpcap"

this new.c is a c file which is having the code and in that file <pcap.h> is included. so i am compling the code using "-lpcap". if we didn't used this option we will get the error message.

But how to compile the c program which is having the <pcap.h> included while using the Glade software in Linux.

So please help me in combining the C code (with <pcap.h> included) and Glade;) :cool:


All times are GMT -5. The time now is 09:08 PM.