Als ik een C (gtk) code wil compileren krijg ik een hele reeks fouten, kan het zijn dat ik de verkeerde bibliotheek heb geinstalleerd?
Dit is de code:
#include
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;
}
dit is de output na het commando; gcc -Wall -g Listing.c -o Listing
frederick@SoLinUb:/media/Data/Humane_Aspecten_Informatica$ gcc -Wall -g Listing_3_3.c -o Listing_3_3
In file included from /usr/include/gdk/gdkcairo.h:23,
from /usr/include/gdk/gdk.h:30,
from /usr/include/gtk/gtk.h:31,
from Listing_3_3.c:1:
/usr/include/gdk/gdkcolor.h:30:19: error: cairo.h: No such file or directory
In file included from /usr/include/gdk/gdkcolor.h:31,
from /usr/include/gdk/gdkcairo.h:23,
from /usr/include/gdk/gdk.h:30,
from /usr/include/gtk/gtk.h:31,
from Listing_3_3.c:1:
/usr/include/gdk/gdktypes.h:32:18: error: glib.h: No such file or directory
/usr/include/gdk/gdktypes.h:33:25: error: pango/pango.h: No such file or directory
/usr/include/gdk/gdktypes.h:34:25: error: glib-object.h: No such file or directory
/usr/include/gdk/gdktypes.h:51:23: error: gdkconfig.h: No such file or directoryIn file included from /usr/include/gdk/gdkcolor.h:31,
from /usr/include/gdk/gdkcairo.h:23,
from /usr/include/gdk/gdk.h:30,
from /usr/include/gtk/gtk.h:31,
from Listing_3_3.c:1: