Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13
#include<gtk/gtk.h> int main(int argc, char **argv) { GtkWidget *window; gtk_init(&argc,&argv); window=gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_show(window); gtk_main(); return(0); }...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Just Joined! Naveen Kumar D's Avatar
    Join Date
    Nov 2006
    Location
    India
    Posts
    56

    Angry Reply


    #include<gtk/gtk.h>
    int main(int argc, char **argv)
    { GtkWidget *window;
    gtk_init(&argc,&argv);
    window=gtk_window_new(GTK_WINDOW_TOPLEVEL);
    gtk_widget_show(window);
    gtk_main();
    return(0);
    }

  2. #12
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    I suppose, you have this code in test.c

    Then do,

    Code:
    gcc -o test test.c `pkg-config --cflags --libs gtk+-2.0`

    It should work even without the softlink that I asked u to create in /usr/include path.

    Sorry, the issue is, you missed out one '-' before cflags and libs

    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  3. #13
    Just Joined! Naveen Kumar D's Avatar
    Join Date
    Nov 2006
    Location
    India
    Posts
    56

    Talking Reply

    Thanks dude its working. I fogot to place double hiypen. Now the program is running cleanly. Anyway thanks once again.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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