求助 msvcprtd.lib(MSVCP90D.dll) : error LNK2005
我现在的工程使用了第三方库recognizer.lib, recognizer.lib已经在linker->input->additional dependencies中添加;
Runtime library为/MDd, LIBCPMT.LIB,LIBCPMTD.LIB在ignore specific library中添加。 我在网上查找了很久,但是还是没有解决这个问题,出现的错误如下:
1>Linking...
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: class std::locale::facet * __thiscall std::locale::facet::_Decref(void)" (?_Decref@facet@locale@std@@QAEPAV123@XZ) already defined in recognizer.lib(CIScribble.obj)
1>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>recognizer.lib(CIScribble.obj) : error LNK2001: unresolved external symbol "public: static class std::locale::id std::ctype <char>::id" (?id@?$ctype@D@std@@2V0locale@2@A)
1>recognizer.lib(CIScribble.obj) : error LNK2001: unresolved external symbol "private: static int std::locale::id::_Id_cnt" (?_Id_cnt@id@locale@std@@0HA)
1>.\..\bin/Caligula.exe : fatal error LNK1120: 2 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\kding\Desktop\CALITEST\app_examples\Caligula\Debug\BuildLog.htm"
1>Caligula - 4 error(s), 18 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========