Problems with OpenGL bindings and D2
Simen Kjaeraas
simen.kjaras at gmail.com
Tue Sep 16 13:53:09 PDT 2008
I'm using the OpenGL bindings from the Bindings project on dsource, and get a bunch of Symbol Undefined errors, for _glViewport, _glMatrixMode, etc...
Now, I'm including opengl32.lib using a pragma, and have also tried doing it from the command line. I seem to remember there being something about this no longer working:
version (Windows) {
extern (Windows):
} else {
extern (C):
}
// functions defined here
So I changed that to "extern (Windows):" in gl.gl and gl.glu, and got nicer names, which might be a good thing.
Any ideas to what I'm doing wrong?
--
Simen
More information about the Digitalmars-d-learn
mailing list