Hello guys, I'm new to GTK+ and I've run into a problem when creating a
ComboBox.

I'm using GTK+ 2.24.18 and following the tutorial from this page:

https://developer.gnome.org/gtk-tutorial/2.24/x1063.html

But when I try to compile the code, it seems that none of the functions I
call exists in the gtk.h file

Output:

xxx.c: In function ‘XXX’:
xxx.c:63:2: warning: implicit declaration of function ‘gtk_combo_new’
[-Wimplicit-function-declaration]
xxx.c:63:8: warning: assignment makes pointer from integer without a cast
[enabled by default]
xxx.c:65:2: warning: implicit declaration of function ‘GTK_COMBO’
[-Wimplicit-function-declaration]
xxx.c:65:101: error: invalid type argument of ‘->’ (have ‘int’)
xxx.c:111:3: warning: statement with no effect [-Wunused-value]
xxx.c:116:3: warning: format not a string literal and no format arguments
[-Wformat-security]
xxx.c:123:2: warning: implicit declaration of function
‘gtk_combo_set_popdown_strings’ [-Wimplicit-function-declaration]
xxx.c:127:2: warning: implicit declaration of function
‘gtk_combo_set_use_arrows’ [-Wimplicit-function-declaration]
xxx.c:54:6: warning: unused variable ‘status’ [-Wunused-variable]

If you could help me I would be thankful

Best regards,
Rui
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to