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

后端 未结 4 1789
终归单人心
终归单人心 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:59

    Some readers will have another issue and need this fix. read the links below. the same problem occured with visual studio 2015 with the advent of windows sdk 10 which brings up libucrt. ucrt is the windows implementation of C Runtime (CRT) aka the posix runtime library. You most likely have code that was ported from unix... Welcome to the drawback

    https://support.microsoft.com/en-us/help/148652/a-lnk2005-error-occurs-when-the-crt-library-and-mfc-libraries-are-linked-in-the-wrong-order-in-visual-c

    https://github.com/lordmulder/libsndfile-MSVC/blob/master/src/sf_unistd.h

    https://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00224.html

    https://msdn.microsoft.com/en-us/library/y23kc048.aspx

    https://blogs.msdn.microsoft.com/vcblog/2015/03/03/introducing-the-universal-crt/

提交回复
热议问题