error LNK2005: xxx already defined in MSVCRT.lib(MSVCR100.dll) C:\something\LIBCMT.lib(setlocal.obj)

后端 未结 4 1793
终归单人心
终归单人心 2020-11-29 18:12

I\'m using DCMTK library for reading Dicom files (Image format used in medical image processing.) I\'m having a problem in compiling this DCMTK source code. DCMTK uses some

4条回答
  •  不知归路
    2020-11-29 18:56

    Getting this error, I changed the

    c/C++ > Code Generation > Runtime Library to Multi-threaded library (DLL) /MD
    

    for both code project and associated Google Test project. This solved the issue.

    Note: all components of the project must have the same definition in c/C++ > Code Generation > Runtime Library. Either DLL or not DLL, but identical.

提交回复
热议问题