headers for OpenGL, OpenAL, and SDL
Anders F Björklund
afb at algonet.se
Wed Mar 8 01:08:44 PST 2006
James Pelcis wrote:
> Would someone with a Mac (hi Anders) please test it? Thank you!
Also, there was a (C) declaration missed on the glut fonts:
ld: Undefined symbols:
__D1c2gl4glut15glutBitmap8By13Pv
__D1c2gl4glut15glutBitmap9By15Pv
__D1c2gl4glut15glutStrokeRomanPv
__D1c2gl4glut19glutStrokeMonoRomanPv
__D1c2gl4glut21glutBitmapHelvetica10Pv
__D1c2gl4glut21glutBitmapHelvetica12Pv
__D1c2gl4glut21glutBitmapHelvetica18Pv
__D1c2gl4glut22glutBitmapTimesRoman10Pv
__D1c2gl4glut22glutBitmapTimesRoman24Pv
Should be declared like this:
extern (C) GLvoid* glutStrokeRoman;
Otherwise they get D mangling.
You can't declare them in the D import module either,
since then it won't link to the external ones from C ?
i.e. they should go into a separate "glutextern.d" file
--anders
PS.
Doesn't seem to start, though:
Error: circular initialization dependency with module gl
Not sure what that is all about.
More information about the Digitalmars-d-announce
mailing list