Cannot link daimos glfw using x64
ParticlePeter via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun May 1 04:24:26 PDT 2016
I am failing to link statically to glfw library with deimos glfw.
The repo includes an example for glfw2. I downloaded the latest
glfw2.lib and tried build the example with -m64 and got these
errors:
C:\ ... \deimos-glfw>dmd GLFW.lib
examples/glfw2/openwindow/openwindow.d -m64
MSVCRT.lib(MSVCR120.dll) : error LNK2005: free already defined in
LIBCMT.lib(free.obj)
MSVCRT.lib(MSVCR120.dll) : error LNK2005: strchr already defined
in LIBCMT.lib(strchr.obj)
MSVCRT.lib(MSVCR120.dll) : error LNK2005: malloc already defined
in LIBCMT.lib(malloc.obj)
MSVCRT.lib(MSVCR120.dll) : error LNK2005: __iob_func already
defined in LIBCMT.lib(_file.obj)
MSVCRT.lib(MSVCR120.dll) : error LNK2005: fprintf already defined
in LIBCMT.lib(fprintf.obj)
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of
other libs; use /NODEFAULTLIB:library
Next I tried to build the library myself with the /NODEFAULTLIB
option set but still getting the same errors.
What am I doing wrong?
More information about the Digitalmars-d-learn
mailing list