muthusuba / googlemock

Automatically exported from code.google.com/p/googlemock
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Visual Studio 10 release link fails #160

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I used svn to get the current release, opened the solution file and selected 
batch build of everything.

The release build then fails while linking with this error:

gmock.lib(gtest-all.obj) : error LNK2038: mismatch detected for 
'_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in gmock_all_test.obj
gmock.lib(gmock-all.obj) : error LNK2038: mismatch detected for 
'_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in gmock_all_test.obj
libcpmtd.lib(stdthrow.obj) : error LNK2038: mismatch detected for 
'_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in gmock_all_test.obj
libcpmtd.lib(xdebug.obj) : error LNK2038: mismatch detected for 
'_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in gmock_all_test.obj
LIBCMTD.lib(dbgheap.obj) : error LNK2005: __heap_alloc already defined in 
LIBCMT.lib(malloc.obj)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: __recalloc already defined in 
LIBCMT.lib(recalloc.obj)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: __msize already defined in 
LIBCMT.lib(msize.obj)
LIBCMTD.lib(dbghook.obj) : error LNK2005: __crt_debugger_hook already defined 
in LIBCMT.lib(dbghook.obj)
LIBCMTD.lib(isctype.obj) : error LNK2005: __isctype_l already defined in 
LIBCMT.lib(isctype.obj)
LIBCMTD.lib(isctype.obj) : error LNK2005: __isctype already defined in 
LIBCMT.lib(isctype.obj)
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; 
use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; 
use /NODEFAULTLIB:library
D:\dev\3rdparty\googlemock\msvc\2010\Release\gmock_test.exe : fatal error 
LNK1169: one or more multiply defined symbols found

Build FAILED.

Original issue reported on code.google.com by l...@schouw.me on 2 Mar 2013 at 8:29