Errors when compiling

Mike Parker via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 3 00:54:30 PST 2014


On 11/3/2014 2:36 AM, James wrote:

> It's telling me that the libraries are in an invalid format. How can I
> get the correct ones ? I got those from the GLFW website

Since you're compiling with -m64, make sure you have the 64-bit GLFW 
binaries and not the 32-bit. Also, you won't need your own copy of 
opengl32.lib if you've installed the Windows SDK along with your Visual 
Studio toolchain.

If you were to use the DerelictGLFW3 [1] & DerelictGL3 [2] bindings 
(preferably using DUB [3] to manage your project) then you would not 
have any link-time dependencies. With DUB, you don't even need to 
download the bindings, since it will manage it all for you. All you 
would need is the shared libraries (the DLLs). The Derelict bindings 
load the shared libraries at run time (see the README in the github repo 
for each project for details). You still have to make sure you're using 
the appropriate GLFW DLL (32-bit vs 64-bit).

[1] https://github.com/DerelictOrg/DerelictGLFW3
[2] https://github.com/DerelictOrg/DerelictGL3
[3] http://code.dlang.org/download


More information about the Digitalmars-d mailing list