Hello, I'm using an external library and I think it is creating a conflict when trying to compile. I've always compiled (as I was instructed to do so) with my project properties - generate code set to: Multithreaded /MD. In this case I can only compile with the external libs with my project properties set to: Multithreaded /MT. Otherwise I get this error:
LIBCMT.lib(dosmap.obj) : error LNK2005: _errno already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(tidtable.obj) : error LNK2005: _encode_pointer already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(tidtable.obj) : error LNK2005: _encoded_null already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(tidtable.obj) : error LNK2005: _decode_pointer already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crtheap.obj) : error LNK2005: _malloc_crt already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(mlock.obj) : error LNK2005: _unlock already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(mlock.obj) : error LNK2005: _lock already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(setlocal.obj) : error LNK2005: _free_locale already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(setlocal.obj) : error LNK2005: _create_locale already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(winxfltr.obj) : error LNK2005: __CppXcptFilter already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: _amsg_exit already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: _initterm_e already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: exit already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(strftime.obj) : error LNK2005: strftime already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0init.obj) : error LNK2005: __xi_a already defined in MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: __xi_z already defined in MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: __xc_a already defined in MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: __xc_z already defined in MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(winsig.obj) : error LNK2005: signal already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(winsig.obj) : error LNK2005: raise already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(tzset.obj) : error LNK2005: _tzset already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(stricmp.obj) : error LNK2005: _stricmp already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(atox.obj) : error LNK2005: atoi already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(atox.obj) : error LNK2005: _atoi_l already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(getenv.obj) : error LNK2005: getenv already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(tolower.obj) : error LNK2005: tolower already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(strtol.obj) : error LNK2005: strtol already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(strtol.obj) : error LNK2005: strtoul already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(strtoq.obj) : error LNK2005: _strtoi64 already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(strnicmp.obj) : error LNK2005: _strnicmp already defined in MSVCRT.lib(MSVCR90.dll)
Creating library Release/pushDeformer.lib and object Release/pushDeformer.exp
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol main referenced in function __tmainCRTStartup
Release\pushDeformer.mll : fatal error LNK1120: 1 unresolved externals
How important are those setting to Maya. And if I compile with /MT and the plugin loads within Maya, are there any unforseen conflicts that will arise later in other systems?