Live data from Hacker News

Gotk3: GTK3 the Go way

blog.conformal.com

1–10 of 58 posts

Re: Gotk3: GTK3 the Go way

#2
I am on ubuntu raring with the packaged golang and I can't compile your example code, copied directly out of Sample Use.

  kbarrett@vernon-linux:~/go-work/gotk$ go version
  go version go1.0.2
  kbarrett@vernon-linux:~/go-work/gotk$ go build
  # github.com/conformal/gotk3/glib
  glib.go:380[/tmp/go-build210667265/github.com/conformal/gotk3/glib/_obj/glib.cgo1.go:370]: function ends without a return statement
  glib.go:743[/tmp/go-build210667265/github.com/conformal/gotk3/glib/_obj/glib.cgo1.go:741]: function ends without a return statement
function ends without a return statement. If this is a problem with my version of go, I will try and fetch the latest head from git. I am interested!

sudo go get github.com/conformal/gotk3/gtk -- gives the same error.

Re: Gotk3: GTK3 the Go way

#3
post #2

I am on ubuntu raring with the packaged golang and I can't compile your example code, copied directly out of Sample Use . kbarrett@vernon-linux:~/go-work/gotk$ go version go version go1.0.2 kbarrett@vernon-linux:~/go-work/gotk$ go build # github.com/conformal/gotk3/glib glib.go:380[/tmp/go-build210667265/github.com/conformal/gotk3/glib/_obj/glib.cgo1.go:370]: function ends without a return statement glib.go:743[/tmp/…

Yes. I think that syntax became legal in 1.1.

Re: Gotk3: GTK3 the Go way

#5
post #2

I am on ubuntu raring with the packaged golang and I can't compile your example code, copied directly out of Sample Use . kbarrett@vernon-linux:~/go-work/gotk$ go version go version go1.0.2 kbarrett@vernon-linux:~/go-work/gotk$ go build # github.com/conformal/gotk3/glib glib.go:380[/tmp/go-build210667265/github.com/conformal/gotk3/glib/_obj/glib.cgo1.go:370]: function ends without a return statement glib.go:743[/tmp/…

Yes. I think that syntax became legal in 1.1.

I see, ubuntu's go is very old. You can tell I'm not doing this stuff every day. (It's obviously because I'm on a release from April...)

I'm going to try it on FreeBSD.

Re: Gotk3: GTK3 the Go way

#7
post #2

I am on ubuntu raring with the packaged golang and I can't compile your example code, copied directly out of Sample Use . kbarrett@vernon-linux:~/go-work/gotk$ go version go version go1.0.2 kbarrett@vernon-linux:~/go-work/gotk$ go build # github.com/conformal/gotk3/glib glib.go:380[/tmp/go-build210667265/github.com/conformal/gotk3/glib/_obj/glib.cgo1.go:370]: function ends without a return statement glib.go:743[/tmp/…

Go 1.1 improved its analysis of whether a function ends with a return statement: http://golang.org/doc/go1.1#return

Re: Gotk3: GTK3 the Go way

#8
post #5

Earlier quoted context omitted.

Yes. I think that syntax became legal in 1.1.

I see, ubuntu's go is very old. You can tell I'm not doing this stuff every day. (It's obviously because I'm on a release from April...) I'm going to try it on FreeBSD.

(That worked.)

Re: Gotk3: GTK3 the Go way

#9
post #8
post #5

Earlier quoted context omitted.

I see, ubuntu's go is very old. You can tell I'm not doing this stuff every day. (It's obviously because I'm on a release from April...) I'm going to try it on FreeBSD.

(That worked.)

If you want the latest Go version on Ubuntu : http://blog.labix.org/2013/06/15/in-flight-deb-packages-of-g...
Post reply on HN