RE: A STRANGE ERROR!!!
- From: Michael Mitton <Michael Mitton millersville edu>
- To: 'Roberto' <robyegiuly libero it>, GTK Mailing-List <gtk-list gnome org>
- Subject: RE: A STRANGE ERROR!!!
- Date: Tue, 1 May 2001 07:53:42 -0400
I think you may have to do the following command to compile...
gcc -o anim interface.c `gtk-config --cflags` `gnome-config --cflags`
`gtk-config --libs` `gnome-config --libs`
-Michael
-----Original Message-----
From: Roberto [mailto:robyegiuly libero it]
Sent: Tuesday, May 01, 2001 5:12 AM
To: GTK Mailing-List
Subject: 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;
}
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]