banthar/Go-OpenGL — Issue #56: Problem compiling Go-OpenGL with libGLEW.1.7.0
Author: andrebq
Created: 2012-02-27 14:52:45+00:00
State: open

When trying to compile Go-OpenGL using libGLEW.1.7.0 the system give this output:

# github.com/banthar/Go-OpenGL/gl
gl.go: In function ‘_cgo_0ca662427903_Cfunc_glShaderSource’:
gl.go:241:2: warning: passing argument 3 of ‘__glewShaderSource’ from incompatible pointer type
gl.go:241:2: note: expected ‘const GLchar **’ but argument is of type ‘GLchar **’
gl.go: In function ‘_cgo_0ca662427903_Cfunc_glTransformFeedbackVaryings’:
gl.go:619:2: warning: passing argument 3 of ‘__glewTransformFeedbackVaryings’ from incompatible pointer type
gl.go:619:2: note: expected ‘const GLchar **’ but argument is of type ‘GLchar **’

The libGLEW version is 1.7.0

andre@andre-desktop:gl$ ls -la /usr/lib/libGLEW.so
lrwxrwxrwx 1 root root 16 2012-02-27 11:45 /usr/lib/libGLEW.so -> libGLEW.so.1.7.0

Go version:

andre@andre-desktop:gl$ go version
go version weekly.2012-02-22 +96bd78e7d35e