Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wgl.go does not compile #13

Open
ccherng opened this issue Aug 18, 2012 · 4 comments
Open

wgl.go does not compile #13

ccherng opened this issue Aug 18, 2012 · 4 comments

Comments

@ccherng
Copy link
Contributor

ccherng commented Aug 18, 2012

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)))
}

@chsc
Copy link
Owner

chsc commented Aug 20, 2012

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.

@ccherng
Copy link
Contributor Author

ccherng commented Aug 22, 2012

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
Copy link
Contributor Author

ccherng commented Sep 7, 2012

Is there any update to the compilation problem?

@chsc
Copy link
Owner

chsc commented Sep 7, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants