pekim / gobbi

gobbi is a set of generated Go bindings for gtk et al.
MIT License
28 stars 3 forks source link

could not determine kind of name for C.g_networking_init #1

Closed rythmkraze closed 5 years ago

rythmkraze commented 5 years ago

simple window example code fails to compile with gtk_3.22 (ubuntu 18.04)

$ go build -tags "gobject_2.56 glib_2.56 gdk_3.22 gdkpixbuf_2.36 gio_2.56 gtk_3.22" main.go
# github.com/pekim/gobbi/lib/gio
../../../go/pkg/mod/github.com/pekim/gobbi@v0.0.5/lib/gio/function-2.36.go:39:2: could not determine kind of name for C.g_networking_init

Using older versions works fine.

$ go build -tags "gobject_2.10 glib_2.48 gdk_3.4 gdkpixbuf_2.32 gio_2.32 gtk_3.18" main.go

Good job on the bindings :+1:

pekim commented 5 years ago

The g_networking_init function is available from gio 2.36. It is defined in gio/gnetworking.h.

So that header file is now included for gio 2.36 or later.

256761b

rythmkraze commented 5 years ago

Thanks for the explanation and the fix. I confirm this fixes the issue on my end.