veandco / go-sdl2

SDL2 binding for Go
https://godoc.org/github.com/veandco/go-sdl2
BSD 3-Clause "New" or "Revised" License
2.2k stars 218 forks source link

Cannot build when using SDL2 2.0.9 + Go 1.7 #397

Closed veeableful closed 5 years ago

veeableful commented 5 years ago

It seems when the package cannot successfully compile when using SDL2 2.0.9 and Go 1.7.

The output is something like this:

$ go install
# github.com/veandco/go-sdl2/sdl
/tmp/go-build115861125/github.com/veandco/go-sdl2/sdl/_obj/_cgo_main.o:(.data.rel+0x0): undefined reference to `SDL_STANDARD_GRAVITY'
collect2: error: ld returned 1 exit status

I suspect it's something to do with older Go not supporting usage of floating point macro definition.

veeableful commented 5 years ago

Should be fixed by 61ef6c9 now