www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - DMD can't link opengl32.lib

reply "Zhenya" <zheny list.ru> writes:
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?
Jun 13 2012
next sibling parent reply Denis Shelomovskij <verylonglogin.reg gmail.com> writes:
13.06.2012 17:03, Zhenya пишет:
 When I wanted to use native opengl binding

 DMD wrote:opengl32.lib
   Error 43: Not a Valid Library File

 But why can't dmd link it?

http://dlang.org/faq.html#omf -- Денис В. Шеломовский Denis V. Shelomovskij
Jun 13 2012
parent Denis Shelomovskij <verylonglogin.reg gmail.com> writes:
13.06.2012 17:53, Zhenya пишет:
 Те которые с DMC идут он проглотит

Да. В FAQ есть ссылка на coff2omf, но он проприетарный. Может помочь coffimplib: http://www.digitalmars.com/ctg/coffimplib.html ftp://ftp.digitalmars.com/coffimplib.zip -- Денис В. Шеломовский Denis V. Shelomovskij
Jun 13 2012
prev sibling next sibling parent "Zhenya" <zheny list.ru> writes:
On Wednesday, 13 June 2012 at 13:16:20 UTC, Denis Shelomovskij 
wrote:
 13.06.2012 17:03, Zhenya пишет:
 When I wanted to use native opengl binding

 DMD wrote:opengl32.lib
  Error 43: Not a Valid Library File

 But why can't dmd link it?

http://dlang.org/faq.html#omf

Cпасибо=) А не подскажешь где достать совместимые с DMD либки?
Jun 13 2012
prev sibling next sibling parent "Zhenya" <zheny list.ru> writes:
On Wednesday, 13 June 2012 at 13:44:51 UTC, Zhenya wrote:
 On Wednesday, 13 June 2012 at 13:16:20 UTC, Denis Shelomovskij 
 wrote:
 13.06.2012 17:03, Zhenya пишет:
 When I wanted to use native opengl binding

 DMD wrote:opengl32.lib
 Error 43: Not a Valid Library File

 But why can't dmd link it?

http://dlang.org/faq.html#omf

Cпасибо=) А не подскажешь где достать совместимые с DMD либки?

Те которые с DMC идут он проглотит?
Jun 13 2012
prev sibling next sibling parent "Zhenya" <zheny list.ru> writes:
On Wednesday, 13 June 2012 at 14:05:46 UTC, Denis Shelomovskij 
wrote:
 13.06.2012 17:53, Zhenya пишет:
 Те которые с DMC идут он проглотит

Да. В FAQ есть ссылка на coff2omf, но он проприетарный. Может помочь coffimplib: http://www.digitalmars.com/ctg/coffimplib.html ftp://ftp.digitalmars.com/coffimplib.zip

Большое спасибо)
Jun 13 2012
prev sibling parent "Kagamin" <spam here.lot> writes:
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
Jun 13 2012