You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.
"go get -u github.com/conformal/gotk3/gtk" works fine. However a subsequent "go install -compiler gccgo -gccgoflags -O github.com/conformal/gotk3/gtk" results in:
# github.com/conformal/gotk3/gtk
gtk/gtk.go:2241:61: error: invalid type conversion (cannot use type gdk.Atom as type unsafe.Pointer)
c := C.gtk_clipboard_get(C.GdkAtom(unsafe.Pointer(atom)))
^
gtk/gtk.go:2256:32: error: invalid type conversion (cannot use type gdk.Atom as type unsafe.Pointer)
C.GdkAtom(unsafe.Pointer(atom)))
^
I am on Debian Sid with gc from default/tip of a clone and gccgo-4.9 from the Debian repository.
The text was updated successfully, but these errors were encountered:
I've seen this problem before and it's an issue with gccgo not being able to convert from defined uintptr types (type MyType uintptr) directly to an unsafe.Pointer. Can you add an additional uintptr conversion before the unsafe.Pointer conversion and confirm that resolves the issue?
I'm not on a machine with commit access atm otherwise I could push a fix now.
"go get -u github.com/conformal/gotk3/gtk" works fine. However a subsequent "go install -compiler gccgo -gccgoflags -O github.com/conformal/gotk3/gtk" results in:
I am on Debian Sid with gc from default/tip of a clone and gccgo-4.9 from the Debian repository.
The text was updated successfully, but these errors were encountered: