DMD can't link opengl32.lib
    Kagamin 
    spam at here.lot
       
    Wed Jun 13 07:59:30 PDT 2012
    
    
  
On Wednesday, 13 June 2012 at 13:03:04 UTC, Zhenya wrote:
> When I wanted to use native opengl binding
>
> module main;
>
> import std.stdio;
>
> import c.gl.gl;
> pragma(lib,"opengl32.lib");
>
> import c.gl.glu;
> pragma(lib,"glu32.lib");
>
> int main(string[] argv)
> {
>    writeln("Hello D-World!");
>    return 0;
> }
>
> DMD wrote:opengl32.lib
>  Error 43: Not a Valid Library File
>
> But why can't dmd link it?
Try gdc? https://bitbucket.org/goshawk/gdc/downloads
    
    
More information about the Digitalmars-d-learn
mailing list