Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
June 13, 2012 DMD can't link opengl32.lib | ||||
---|---|---|---|---|
| ||||
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? |
June 13, 2012 Re: DMD can't link opengl32.lib | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zhenya | 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 |
June 13, 2012 Re: DMD can't link opengl32.lib | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis Shelomovskij | 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 либки?
|
June 13, 2012 Re: DMD can't link opengl32.lib | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zhenya | 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 идут он проглотит?
|
June 13, 2012 Re: DMD can't link opengl32.lib | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zhenya | 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 |
June 13, 2012 Re: DMD can't link opengl32.lib | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis Shelomovskij | 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
Большое спасибо)
|
June 13, 2012 Re: DMD can't link opengl32.lib | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zhenya | 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 |
Copyright © 1999-2021 by the D Language Foundation