A STRANGE ERROR!!!



I've done a little program with Gnome-Anomator, but it returns me an
error,
The filename is 'interface.c':

Roberto DEBIAN:~$ gcc -o anim interface.c `gtk-config --cflags`
`gtk-config --libs` 
/tmp/cc2SOLbE.o: In function `main':
/tmp/cc2SOLbE.o(.text+0xc6): undefined reference to
`gnome_animator_new_with_size'
/tmp/cc2SOLbE.o(.text+0xe6): undefined reference to
`gnome_animator_get_type'
/tmp/cc2SOLbE.o(.text+0xfd): undefined reference to
`gnome_animator_append_frames_from_file_at_size'
/tmp/cc2SOLbE.o(.text+0x136): undefined reference to
`gnome_animator_get_type'
/tmp/cc2SOLbE.o(.text+0x14d): undefined reference to
`gnome_animator_set_loop_type'
/tmp/cc2SOLbE.o(.text+0x15b): undefined reference to
`gnome_animator_get_type'
/tmp/cc2SOLbE.o(.text+0x172): undefined reference to
`gnome_animator_start'
collect2: ld returned 1 exit status

This is the program:

#include <gnome.h>
#include <gtk/gtk.h>
#include <stdio.h>





int
main (int argc, char **argv)
{
  GtkWidget *window1;
  GtkWidget *animator;
  char *img = "32.png";


gtk_init (&argc, &argv);

  window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_widget_set_name (window1, "window1");
  gtk_object_set_data (GTK_OBJECT (window1), "window1", window1);
  gtk_window_set_title (GTK_WINDOW (window1), "window1");


animator = gnome_animator_new_with_size (32, 32);

	
	gnome_animator_append_frames_from_file_at_size (GNOME_ANIMATOR
(animator),
							img,
							0, 0,
							25,
							32, 
							32, 32);

	
	gtk_container_add (GTK_CONTAINER (window1), animator);
	gnome_animator_set_loop_type (GNOME_ANIMATOR (animator), 
				      GNOME_ANIMATOR_LOOP_RESTART);
	gnome_animator_start(GNOME_ANIMATOR (animator));



	gtk_widget_show(animator);
	gtk_widget_show(window1);

	
	
	gtk_main ();
	
 return 0; 
}





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