[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problem with compiling my first GTK program



Hi,

I'm trying to write a c program using GTK.
I'm very new to C.

When I compile the first program from the GTK Tutorial, I have :

/* example-start base base.c */

#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);
}
/* example-end */





fayard@Homogenic:~/GTK/ESSAI$ gcc base.c -o base `gtk-config --cflags
--libs`
/usr/bin/ld: cannot find -lXi
collect2: ld returned 1 exit status

I'm running Potato+Security Updates+Helix Code

If someone has any idea.

Thanks
Francois



Reply to: