I am using debian etch on Dell inspiron 1420 machine. It has display and sound problems.
I was trying to learn ANJUTA. I tried the Hello World program in the Anjuta Tutorial. But it failed. There were some warnings and one error message. I exactly did what the tutorial has asked me. So, there is no typing errors or errors like that.
This is the code which showed error while building the callbacks.c file. I actually dont know how the codes work. But I just copied the codes from the tutorial page.
on_BT_OK_clicked (GtkButton *button, gpointer user_data)
GtkWidget *entry = lookup_widget (GTK_WIDGET(button), "ENTRY");
GtkWidget *msgbox = gnome_app_new("Hello World", "Hello World");
gchar *text1, *text2;
text1 = gtk_entry_get_text (GTK_ENTRY(entry));
text2 = g_strconcat ("Hello, ", text1, NULL);
gnome_app_message (GNOME_APP(msgbox), text2);
After I went for Build All, I got following warnings and error.
callbacks.c:18: warning: implicit declaration of function ‘gnome_app_new’
callbacks.c:18: warning: initialization makes pointer from integer without a cast
callbacks.c:21: warning: assignment discards qualifiers from pointer target type
callbacks.c:23: warning: implicit declaration of function ‘gnome_app_message’
callbacks.c:23: warning: implicit declaration of function ‘GNOME_APP’
../Projects/Hello/src/callbacks.c:23: undefined reference to `GNOME_APP'
** Is there any other packages I have to install for the correct working of the code?
I also tried Build-->compile. It also showed errors.
callbacks.c:5:21: error: gtk/gtk.h: No such file or directory
Then I tried #include</usr/include/gtk-2.0/gtk/gtk.h> in the callbacks.c file. Again another message.
Compiling file: callbacks.c ...
gcc -Wall -g -c "callbacks.c" -o "callbacks.o"
In file included from callbacks.c:6:
/usr/include/gtk-2.0/gtk/gtk.h:31:21: error: gdk/gdk.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:32:32: error: gtk/gtkaboutdialog.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:33:31: error: gtk/gtkaccelgroup.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:34:31: error: gtk/gtkaccellabel.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:35:29: error: gtk/gtkaccelmap.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:36:31: error: gtk/gtkaccessible.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:37:27: error: gtk/gtkaction.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:38:32: error: gtk/gtkactiongroup.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:39:31: error: gtk/gtkadjustment.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:40:30: error: gtk/gtkalignment.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:41:26: error: gtk/gtkarrow.h: No such file or directory
Completed ... unsuccessful
Total time taken: 0 secs
** What should I do for the correct working of the program??