Find the answer to your Linux question:
Results 1 to 4 of 4
hi, i am mohit i hv some problem while compliling a file consisting of gtk and libpcap tools. i m compiling my file using command:- gcc 'pkg-config --cflags --libs gtk+-2.0' ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Location
    nagpur
    Posts
    6

    Smile gtk related problem


    hi, i am mohit
    i hv some problem while compliling a file consisting of gtk and libpcap tools.
    i m compiling my file using command:- gcc 'pkg-config --cflags --libs gtk+-2.0' xyz.c -o xyz
    while compilation error comes that pkg-config --cflags --libs gtk+-2.0 file not found
    can u plz tell me how to solve this problem its very urgent for me, my program is not compliling due to this error..... plz gimmi some solution over it

  2. #2
    Linux Newbie
    Join Date
    Feb 2007
    Location
    hyderabad, india
    Posts
    247
    Quote Originally Posted by mohitwalke View Post
    hi, i am mohit
    i hv some problem while compliling a file consisting of gtk and libpcap tools.
    i m compiling my file using command:- gcc 'pkg-config --cflags --libs gtk+-2.0' xyz.c -o xyz
    while compilation error comes that pkg-config --cflags --libs gtk+-2.0 file not found
    can u plz tell me how to solve this problem its very urgent for me, my program is not compliling due to this error..... plz gimmi some solution over it
    which distro , u are using?
    check if gtk installed or not?
    any how try this and tell me ur output
    Code:
    gcc -o xyz -Wall -g xyz.c `pkg-config gtk+-2.0 --cflags --libs `-I/usr/include/libglade-2.0 -lglade-2.0
    "Relationships are built on trust and communication"

  3. #3
    Just Joined! asadujjaman's Avatar
    Join Date
    Apr 2007
    Location
    ~
    Posts
    51
    Are you trying the single quotes?

    gcc 'pkg-config --cflags --libs gtk+-2.0' xyz.c -o xyz
    or
    gcc `pkg-config --cflags --libs gtk+-2.0` xyz.c -o xyz
    ?

    If you are using the previous using the other one should help.

  4. #4
    Just Joined!
    Join Date
    Jun 2007
    Location
    nagpur
    Posts
    6
    thank you munna thank u very much, now i m glad i got my output, ur given command runs dude... there r some warning in my programs but finally i create my exe file. my emaild Id is mohitwalke@gmail.com, gimmi ur mail Id, its my pleasure if i can talk to you..
    chalo bye and take care.... thanks once again... hv a nice time

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •