Skip to content

Instantly share code, notes, and snippets.

@azbesthu
Last active June 25, 2017 11:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save azbesthu/10280233 to your computer and use it in GitHub Desktop.
defaultlib 'MSVCRTD' conflicts with use of other libs
[4356/10029] LINK_EMBED mksnapshot.ia32.exe
FAILED: cmd /c (C:\Python27\python.exe gyp-win-tool link-wrapper environment.x86 link.exe /nologo /OUT:mksnapshot.ia32.exe /PDB:mksnapshot.i
a32.exe.pdb @mksnapshot.ia32.exe.rsp) && (if exist mksnapshot.ia32.exe.manifest del mksnapshot.ia32.exe.manifest) && if not "obj\src\3rdpart
y\chromium\v8\tools\gyp\mksnapshot.ia32.mksnapshot.ia32.exe.intermediate.manifest ..\..\..\src\3rdparty\chromium\build\win\compatibility.man
ifest"=="" ((C:\Python27\python.exe gyp-win-tool manifest-wrapper environment.x86 mt.exe -nologo -manifest obj\src\3rdparty\chromium\v8\tool
s\gyp\mksnapshot.ia32.mksnapshot.ia32.exe.intermediate.manifest ..\..\..\src\3rdparty\chromium\build\win\compatibility.manifest -outputresou
rce:mksnapshot.ia32.exe;1))
msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: static double __cdecl std::numeric_limits<double>::max(void)" (?max@?$numeric_limits@N
@std@@SANXZ) already defined in v8_base.ia32.lib(v8_base.ia32.time.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: "public: bool __thiscall type_info::operator==(class type_info const &)const " (??8type_info@@QB
E_NABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: __stricmp already defined in LIBCMTD.lib(stricmp.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _atoi already defined in LIBCMTD.lib(atox.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _wcslen already defined in LIBCMTD.lib(wcslen.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _strtod already defined in LIBCMTD.lib(strtod.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _strchr already defined in LIBCMTD.lib(strchr.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _sprintf already defined in LIBCMTD.lib(sprintf.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _memmove already defined in LIBCMTD.lib(memmove.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: "public: bool __thiscall type_info::operator!=(class type_info const &)const " (??9type_info@@QB
E_NABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _strncmp already defined in LIBCMTD.lib(strncmp.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _isdigit already defined in LIBCMTD.lib(_ctype.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _raise already defined in LIBCMTD.lib(winsig.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _printf already defined in LIBCMTD.lib(printf.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _strrchr already defined in LIBCMTD.lib(strrchr.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _strstr already defined in LIBCMTD.lib(strstr.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _isspace already defined in LIBCMTD.lib(_ctype.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: __strnicmp already defined in LIBCMTD.lib(strnicmp.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _malloc already defined in LIBCMTD.lib(dbgmalloc.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _free already defined in LIBCMTD.lib(dbgfree.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _strtol already defined in LIBCMTD.lib(strtol.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _floor already defined in LIBCMTD.lib(_floor_pentium4_.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _ceil already defined in LIBCMTD.lib(_ceil_pentium4_.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: __tzset already defined in LIBCMTD.lib(tzset.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: ___timezone already defined in LIBCMTD.lib(timeset.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: ___tzname already defined in LIBCMTD.lib(timeset.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _getenv already defined in LIBCMTD.lib(getenv.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _strtoul already defined in LIBCMTD.lib(strtol.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _atol already defined in LIBCMTD.lib(atox.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _fgets already defined in LIBCMTD.lib(fgets.obj)
MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _fopen already defined in LIBCMTD.lib(fopen.obj)
MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) al
ready defined in LIBCMTD.lib(typinfo.obj)
MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_inf
o@@AAEAAV0@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj)
LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
mksnapshot.ia32.exe : fatal error LNK1169: one or more multiply defined symbols found
[4356/10029] CXX obj\src\3rdparty\chromium\crypto\crypto.encryptor.obj
ninja: build stopped: subcommand failed.
NMAKE : fatal error U1077: 'C:\cygwin\home\Administrator\apr7\qtwebengine\src\3rdparty\ninja\ninja.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '(' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
C:\cygwin\home\Administrator\apr7\qtwebengine>
@azbesthu
Copy link
Author

azbesthu commented Apr 9, 2014

@YanBellavance
Copy link

I found the answer to your problem. read the links below. the same problem occured with visual studio 2015 with the advent of windows sdk 10 which brings up libucrt. ucrt is the windows implementation of C Runtime (CRT) aka the posix runtime library. You most likely have code that was ported from unix... Welcome to the drawback

https://support.microsoft.com/en-us/help/148652/a-lnk2005-error-occurs-when-the-crt-library-and-mfc-libraries-are-linked-in-the-wrong-order-in-visual-c

https://github.com/lordmulder/libsndfile-MSVC/blob/master/src/sf_unistd.h

https://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00224.html

https://msdn.microsoft.com/en-us/library/y23kc048.aspx

https://blogs.msdn.microsoft.com/vcblog/2015/03/03/introducing-the-universal-crt/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment