Access Violation while trying to use OpenGL
Mike Parker via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Sep 1 18:06:59 PDT 2015
On Tuesday, 1 September 2015 at 20:35:43 UTC, spec00 wrote:
> On Tuesday, 1 September 2015 at 20:15:28 UTC, spec00 wrote:
>> I'am trying to play a bit with D and OpenGL by using the
>> available Derelict bindings, but i'am even failing to create a
>> window.
>>
>> [...]
>
> The problem was in me using the 64bit version of the GLFW dll.
> DMD doesn't support compiling to x64? I tried using the DUB
> flag --arch=x86_x64 but i then got an error saying:
> Can't run '\bin\link.exe', check PATH
>
> What would be the correct way to compile to x64?
>
> Thanks,
To compile 64-bit programs on Windows, DMD requires the Microsoft
toolchain. The easiest thing to do is to install the Community
Edition of Visual Studio 2013 (DMD isn't yet compatible with VS
2015).
Also, you aren't using OpenGL in this example, but GLFW :)
More information about the Digitalmars-d-learn
mailing list