go-gl-legacy / gl

Go bindings for OpenGL
BSD 3-Clause "New" or "Revised" License
342 stars 52 forks source link

compilation problem related to go1.3? #165

Closed emicklei closed 10 years ago

emicklei commented 10 years ago

Hi,

I have been using and compiling this package for a while on OSX 10.7.5 , go1.2 and GLEW 1.10.Recently, I started upgrading my project to 1.3.

When re-installing go-gl , I get the following error:

37: error: 'glGenBuffers' undeclared (first use in this function)

no idea which file is being referred to

My command line is:

CGO_CFLAGS="-I/usr/local/Cellar/glew/1.10.0/include" CGO_LDFLAGS="-L/usr/local/Cellar/glew/1.10.0/lib" go install

(note the removal of /GL as documented in Readme)

Suggestions anybody? Thanks!

emicklei commented 10 years ago

Hi,

For some unkown reason the following line was commented in glew.h

define glGenBuffers GLEW_GET_FUN(__glewGenBuffers)

Obviously, removing the surrounding /* , */ fixed it for me