-
-
Notifications
You must be signed in to change notification settings - Fork 247
Fail build gtk.go with go1.3 #210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Really weird... I pulled the latest version of go-gtk and tried to
Then I installed the package again with all dependencies (using Shouldn't the go tool do all this automatically? Weird! |
I know this. It seems cgo broken. |
Thanks kch42, this is work. |
@kch42 if latest means 1.3 < 1.3.1, then this might be a similar issue: https://code.google.com/p/go/issues/detail?id=8463 |
In latest go on hg, it should be worked. |
fails on build gtk.go:
go get github.com/mattn/go-gtk/gtk
github.com/mattn/go-gtk/gtk
src/github.com/mattn/go-gtk/gtk/gtk.go:58: cannot use p.Bin.Container.Widget.GWidget (type *C.struct__GtkWidget) as type *C.GtkWidget in argument to _Cfunc_toGWindow
src/github.com/mattn/go-gtk/gtk/gtk.go:59: cannot use p.Window.Bin.Container.Widget.GWidget (type *C.struct__GtkWidget) as type *C.GtkWidget in argument to _Cfunc_toGDialog
src/github.com/mattn/go-gtk/gtk/gtk.go:60: cannot use p.Dialog.Window.Bin.Container.Widget.GWidget (type *C.struct__GtkWidget) as type *C.GtkWidget in argument to _Cfunc_toGAboutDialog
...
src/github.com/mattn/go-gtk/gtk/gtk.go:69: too many errors
in .go files, cgo struct defines as "type *C.struct__GtkWidget" and in C headers .h functions get args as "type *C.GtkWidget"
ret types have same bugs
in older version go, all build ok
sorry for my english
The text was updated successfully, but these errors were encountered: