drhodes / go-sfml

Go bindings for SFML
zlib License
15 stars 3 forks source link

go get github.com/drhodes/go-sfml #2

Open xyproto opened 11 years ago

xyproto commented 11 years ago

Hi,

I'm on 64-bit Arch Linux using Go 1.0.3.

This command: go get github.com/drhodes/go-sfml

results in the following errors:

# github.com/drhodes/go-sfml
gfx-circle-shape.go:190[/tmp/go-build199724210/github.com/drhodes/go-sfml/_obj/gfx-circle-shape.cgo1.go:124]: cannot use &t (type **[0]byte) as type *[0]byte in field value
gfx-circle-shape.go:199[/tmp/go-build199724210/github.com/drhodes/go-sfml/_obj/gfx-circle-shape.cgo1.go:131]: cannot use &t (type **[0]byte) as type *[0]byte in field value
gfx-convexshape.go:192[/tmp/go-build199724210/github.com/drhodes/go-sfml/_obj/gfx-convexshape.cgo1.go:123]: cannot use &t (type **[0]byte) as type *[0]byte in field value
gfx-convexshape.go:201[/tmp/go-build199724210/github.com/drhodes/go-sfml/_obj/gfx-convexshape.cgo1.go:130]: cannot use &t (type **[0]byte) as type *[0]byte in field value
gfx-rectangle-shape.go:190[/tmp/go-build199724210/github.com/drhodes/go-sfml/_obj/gfx-rectangle-shape.cgo1.go:124]: cannot use &t (type **[0]byte) as type *[0]byte in field value
gfx-rectangle-shape.go:199[/tmp/go-build199724210/github.com/drhodes/go-sfml/_obj/gfx-rectangle-shape.cgo1.go:131]: cannot use &t (type **[0]byte) as type *[0]byte in field value
gfx-shader.go:283[/tmp/go-build199724210/github.com/drhodes/go-sfml/_obj/gfx-shader.cgo1.go:108]: cannot use *transform.Cref (type [0]byte) as type *[0]byte in function argument
gfx-sprite.go:197[/tmp/go-build199724210/github.com/drhodes/go-sfml/_obj/gfx-sprite.cgo1.go:132]: cannot use &t (type **[0]byte) as type *[0]byte in field value
gfx-sprite.go:206[/tmp/go-build199724210/github.com/drhodes/go-sfml/_obj/gfx-sprite.cgo1.go:139]: cannot use &t (type **[0]byte) as type *[0]byte in field value
gfx-text.go:209[/tmp/go-build199724210/github.com/drhodes/go-sfml/_obj/gfx-text.cgo1.go:136]: cannot use &t (type **[0]byte) as type *[0]byte in field value
gfx-text.go:209[/tmp/go-build199724210/github.com/drhodes/go-sfml/_obj/gfx-text.cgo1.go:136]: too many errors

Best regards, Alexander Rødseth

xyproto commented 11 years ago

This is still an issue with Go 1.1, but now the error messages are fewer:

go get github.com/drhodes/go-sfml    
# github.com/drhodes/go-sfml
1: error: 'sfShader_unbind' undeclared (first use in this function)
1: note: each undeclared identifier is reported only once for each function it appears in