搭建clapack计算平台的时候遇到的问题并解决~!

Error 1 error LNK2005: __invoke_watson already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(invarg.obj) CLAPACK_computer
Error 2 error LNK2005: __errno already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(dosmap.obj) CLAPACK_computer
Error 3 error LNK2005: __CrtSetCheckCount already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(dbgheap.obj) CLAPACK_computer
Error 4 error LNK2005: __crt_debugger_hook already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(dbghook.obj) CLAPACK_computer
Error 5 error LNK2005: _sprintf already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(sprintf.obj) CLAPACK_computer
Error 6 error LNK2005: __lock already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(mlock.obj) CLAPACK_computer
Error 7 error LNK2005: __unlock already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(mlock.obj) CLAPACK_computer
Error 8 error LNK2005: _exit already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(crt0dat.obj) CLAPACK_computer
Error 9 error LNK2005: __exit already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(crt0dat.obj) CLAPACK_computer
Error 10 error LNK2005: __cexit already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(crt0dat.obj) CLAPACK_computer
Error 11 error LNK2005: __amsg_exit already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(crt0dat.obj) CLAPACK_computer
Error 12 error LNK2005: __initterm_e already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(crt0dat.obj) CLAPACK_computer
Error 13 error LNK2005: __XcptFilter already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(winxfltr.obj) CLAPACK_computer
Error 14 error LNK2005: _signal already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(winsig.obj) CLAPACK_computer
Error 15 error LNK2005: __configthreadlocale already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(setlocal.obj) CLAPACK_computer
Error 16 error LNK2005: ___xi_a already defined in MSVCRTD.lib(cinitexe.obj) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(crt0init.obj) CLAPACK_computer
Error 17 error LNK2005: ___xi_z already defined in MSVCRTD.lib(cinitexe.obj) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(crt0init.obj) CLAPACK_computer
Error 18 error LNK2005: ___xc_a already defined in MSVCRTD.lib(cinitexe.obj) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(crt0init.obj) CLAPACK_computer
Error 19 error LNK2005: ___xc_z already defined in MSVCRTD.lib(cinitexe.obj) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(crt0init.obj) CLAPACK_computer
Error 20 error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(hooks.obj) CLAPACK_computer
Error 21 error LNK2005: _mainCRTStartup already defined in MSVCRTD.lib(crtexe.obj) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(crt0.obj) CLAPACK_computer
Error 22 error LNK2005: ___set_app_type already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(errmode.obj) CLAPACK_computer
Error 23 error LNK2005: __CrtDbgReportW already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(dbgrptw.obj) CLAPACK_computer
Error 24 error LNK2005: _printf already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(printf.obj) CLAPACK_computer
Error 25 error LNK2005: ___iob_func already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(_file.obj) CLAPACK_computer
Error 26 error LNK2005: _atoi already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(atox.obj) CLAPACK_computer
Error 27 error LNK2005: _fflush already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(fflush.obj) CLAPACK_computer
Error 28 error LNK2005: _abort already defined in MSVCRTD.lib(MSVCR100D.dll) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LIBCMTD.lib(abort.obj) CLAPACK_computer
Error 29 error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\MSVCRTD.lib(ti_inst.obj) CLAPACK_computer
Error 30 error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj) C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\MSVCRTD.lib(ti_inst.obj) CLAPACK_computer
Warning 31 warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LINK CLAPACK_computer
Warning 32 warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library C:\Opencv_Iteam\10\10-20\CLAPACK_computer\CLAPACK_computer\LINK CLAPACK_computer
Error 33 error LNK1169: one or more multiply defined symbols found C:\Opencv_Iteam\10\10-20\CLAPACK_computer\Debug\CLAPACK_computer.exe 1 1 CLAPACK_computer


解决方法:
Right click the project, choose "property" on the pop up menu, and then "Configuration Properties"->"C/C++"->"Code Generation", then find "runtime library" on the right side, and click the current value, choose "Milti-threaded debug" or multi-threaded which depends on your build configuration(debug/release).
或者:加入语句:
#pragma comment(linker,"/nodefaultlib:LIBCMT.lib")   
#pragma comment(linker,"/nodefaultlib:MSVCRTD.lib") 
复制 搜索

你可能感兴趣的:(c,Class,library,平台,Signal,linker)