gogl icon indicating copy to clipboard operation
gogl copied to clipboard

wgl.go does not compile

Open ccherng opened this issue 13 years ago • 4 comments

The generator attempts to generate a return when the function has no return type. For example the following code is generated for DeleteBufferRegionARB which has no return type.

func DeleteBufferRegionARB(hRegion Pointer) { return ()(C.goglDeleteBufferRegionARB((C.HANDLE)(hRegion))) }

ccherng avatar Aug 18 '12 04:08 ccherng

The problem lies in line 399 and 432 of generator.go (a check for VOID must be added). Maybe I'll fix this today, but there are still some other issues with the wgl/glx code generation.

chsc avatar Aug 20 '12 08:08 chsc

Still does not compile for me.

github.com/chsc/gogl/wgl

1: error: 'GLsync' undeclared (first use in this function) 1: note: each undeclared identifier is reported only once for each function it appears in 1: error: 'float32' undeclared (first use in this function) 1: error: 'unsigned_long' undeclared (first use in this function) 1: error: 'uint32' undeclared (first use in this function) 1: error: 'GLsizeiptr' undeclared (first use in this function) 1: error: 'GLuint64' undeclared (first use in this function) 1: error: 'GLchar' undeclared (first use in this function) 1: error: 'GLintptr' undeclared (first use in this function) 1: error: 'GLint64' undeclared (first use in this function)

ccherng avatar Aug 22 '12 21:08 ccherng

Is there any update to the compilation problem?

ccherng avatar Sep 07 '12 10:09 ccherng

Sorry, currently I don't have much time for this. This issue needs much more work. Also WGL (and GLX) binding generation is trickier than I first thought.

chsc avatar Sep 07 '12 19:09 chsc