netskate
August 9th, 2007, 10:49 PM
Hi all, I have a program like this:
// GTK regular header
#include <gtk/gtk.h>
// Glade regular header
#include <glade/glade.h>
// Main program
int main(int argc, char **argv) {
GladeXML *xml;
GtkWidget *widget;
// Initilize GTK API
gtk_init(&argc, &argv);
// Open the Glade file
xml = glade_xml_new(// Glade file describing the MMI
"interfaccia.glade",
// Root window (const char)
NULL,
// Translation domain for XML file
NULL);
// Get the main window container
widget = glade_xml_get_widget(xml, "window1");
// We don't handle any signal in this little program
// but this does not hurt
glade_xml_signal_autoconnect(xml);
// Show every widget created so far
gtk_widget_show_all(widget);
// Main GTK loop
gtk_main();
// Default success code
return 0;
someone can help me to compile it with gcc?
what is the command line I had to do?
# gcc source.c -o outputfile .....?
wait your answers, thanks
// GTK regular header
#include <gtk/gtk.h>
// Glade regular header
#include <glade/glade.h>
// Main program
int main(int argc, char **argv) {
GladeXML *xml;
GtkWidget *widget;
// Initilize GTK API
gtk_init(&argc, &argv);
// Open the Glade file
xml = glade_xml_new(// Glade file describing the MMI
"interfaccia.glade",
// Root window (const char)
NULL,
// Translation domain for XML file
NULL);
// Get the main window container
widget = glade_xml_get_widget(xml, "window1");
// We don't handle any signal in this little program
// but this does not hurt
glade_xml_signal_autoconnect(xml);
// Show every widget created so far
gtk_widget_show_all(widget);
// Main GTK loop
gtk_main();
// Default success code
return 0;
someone can help me to compile it with gcc?
what is the command line I had to do?
# gcc source.c -o outputfile .....?
wait your answers, thanks