conformal / gotk3

Go bindings for GTK3
ISC License
470 stars 81 forks source link

gotk3 won't compile under Go 1.3 #62

Closed mdimec4 closed 10 years ago

mdimec4 commented 10 years ago

Hi I have problem compiling gotk3 with Go 1.3. It seams that new cgo has corrected a bug that gotk3 seams to depend on. http://golang.org/doc/go1.3#cgo

If this turns out to be a big problem I am prepared to help with fixing the library.

Here is compiler output:

miha@miha-work:~/Koala_intro/koala2 (develop)$ go version
go version go1.3 linux/amd64
miha@miha-work:~/Koala_intro/koala2 (develop)$ go build -tags gtk_3_10 github.com/visionect/gotk3/glib
miha@miha-work:~/Koala_intro/koala2 (develop)$ go build -tags gtk_3_10 github.com/visionect/gotk3/cairo
miha@miha-work:~/Koala_intro/koala2 (develop)$ go build -tags gtk_3_10 github.com/visionect/gotk3/pango
miha@miha-work:~/Koala_intro/koala2 (develop)$ go build -tags gtk_3_10 github.com/visionect/gotk3/gdk
miha@miha-work:~/Koala_intro/koala2 (develop)$ go build -tags gtk_3_10 github.com/visionect/gotk3/gtk
# github.com/visionect/gotk3/glib
src/github.com/visionect/gotk3/glib/glib.go:756: cannot use glist (type *C.struct__GList) as type *C.GList in argument to _Cfunc_g_list_append
src/github.com/visionect/gotk3/glib/glib.go:756: cannot use _Cfunc_g_list_append(glist, C.gpointer(data)) (type *C.GList) as type *C.struct__GList in assignment
src/github.com/visionect/gotk3/glib/glib.go:763: cannot use glist (type *C.struct__GList) as type *C.GList in argument to _Cfunc_g_list_prepend
src/github.com/visionect/gotk3/glib/glib.go:763: cannot use _Cfunc_g_list_prepend(glist, C.gpointer(data)) (type *C.GList) as type *C.struct__GList in assignment
src/github.com/visionect/gotk3/glib/glib.go:770: cannot use glist (type *C.struct__GList) as type *C.GList in argument to _Cfunc_g_list_insert
src/github.com/visionect/gotk3/glib/glib.go:770: cannot use _Cfunc_g_list_insert(glist, C.gpointer(data), C.gint(position)) (type *C.GList) as type *C.struct__GList in assignment
miha@miha-work:~/Koala_intro/koala2 (develop)$ 

Best

Miha

jrick commented 10 years ago

Please see #61.