Advertisement
Guest User

GTK simple button error

a guest
Oct 17th, 2014
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. In file included from /usr/include/gtk-3.0/gtk/gtkaccellabel.h:36:0,
  2. from /usr/include/gtk-3.0/gtk/gtk.h:33,
  3. from GTKsimple.c:1:
  4. /usr/include/gtk-3.0/gtk/gtklabel.h:41:27: error: expected declaration specifiers or ‘...’ before ‘(’ token
  5. #define GTK_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LABEL, GtkLabel))
  6. ^
  7. GTKsimple.c:5:18: note: in expansion of macro ‘GTK_LABEL’
  8. void updateLabel(GTK_LABEL(sum), int num)
  9. ^
  10. In file included from /usr/include/gtk-3.0/gtk/gtkbin.h:33:0,
  11. from /usr/include/gtk-3.0/gtk/gtkwindow.h:35,
  12. from /usr/include/gtk-3.0/gtk/gtkdialog.h:33,
  13. from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
  14. from /usr/include/gtk-3.0/gtk/gtk.h:31,
  15. from GTKsimple.c:1:
  16. GTKsimple.c: In function ‘main’:
  17. /usr/include/gtk-3.0/gtk/gtkcontainer.h:39:41: warning: passing argument 1 of ‘gtk_widget_set_size_request’ from incompatible pointer type
  18. #define GTK_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CONTAINER, GtkContainer))
  19. ^
  20. GTKsimple.c:50:37: note: in expansion of macro ‘GTK_CONTAINER’
  21. gtk_widget_set_size_request (GTK_CONTAINER(window), 150, 100);
  22. ^
  23. In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27:0,
  24. from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
  25. from /usr/include/gtk-3.0/gtk/gtkdialog.h:33,
  26. from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
  27. from /usr/include/gtk-3.0/gtk/gtk.h:31,
  28. from GTKsimple.c:1:
  29. /usr/include/gtk-3.0/gtk/gtkwidget.h:964:12: note: expected ‘struct GtkWidget *’ but argument is of type ‘struct GtkContainer *’
  30. void gtk_widget_set_size_request (GtkWidget *widget,
  31. ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement