Linking OpenGL and SDL OSX 10.4

James Pelcis jpelcis at gmail.com
Sun Mar 26 10:42:13 PST 2006


Hello.  Although I made those bindings, it doesn't surprise me that they 
can't be used.  The problem is that I don't own a Mac.

As I understand things, the headers still need to be compiled and 
linked.  If you don't do that, you'll be calling a non-existent 
function.  The major caveat is that _glextern.d should NOT be linked in 
or GLUT fonts might not work (on some operating system, at least).

Further than that, I can't really help other than to apply whatever 
fixes are needed.

Johan Granberg wrote:
> Frank Benoit wrote:
>> Seems to be a bug. If a module has only C-declarations and no actions in
>> it, the compiler does not generate the ModuleInfo symbol.
>> For work around you can add a
>>
>> unittest{}
>>
>> into each such module.
> 
> Ok you got me confused. I had asumed you used the files as c headers and 
> therfor did not compiled and linked them. I tried to compile and link 
> them to but that resulted in multiple definitions of wath i belive to 
> bee every public symbol in opengl.
> 
> what am i suposed to do to get the bindings working? I used these 
> bindings but if there are others i can easily use them instead
> 
> http://www.dsource.org/projects/bindings/wiki/OpenGraphicsLibrary
> 



More information about the Digitalmars-d-learn mailing list