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.
- 02-28-2007 #11
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);
}
- 02-28-2007 #12
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
---------------------------------
- 03-05-2007 #13
Reply
Thanks dude its working. I fogot to place double hiypen. Now the program is running cleanly. Anyway thanks once again.


Reply With Quote
