Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Visual Studio 66 mismatches detected  (Read 86 times)

0 Members and 1 Guest are viewing this topic.

wookie145

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Visual Studio 66 mismatches detected
« on: June 29, 2020, 05:25:43 pm »
UPDATE: I am still having trouble with using static libraries, but I got the dlls to work so I'm fine for now.

I followed the tutorial, linked all the static libraries and put SFML_STATIC in project properties. Now, I'm getting these errors:
Error   LNK1319   66 mismatches detected   project   C:\Users\name\source\repos\project\x64\Debug\project.exe   1   
Warning   LNK4098   defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library   project C:\Users\name\source\repos\project\LINK   1   
Error   LNK2038   mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in main.obj   project   C:\Users\name\source\repos\project\sfml-window-s.lib(VideoMode.cpp.obj)   1   
Error   LNK2038   mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in main.obj   project   C:\Users\name\source\repos\project\sfml-window-s.lib(Window.cpp.obj)   1   
« Last Edit: June 29, 2020, 06:13:47 pm by wookie145 »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 9573
    • View Profile
    • development blog
    • Email
Re: Visual Studio 66 mismatches detected
« Reply #1 on: July 06, 2020, 11:13:55 pm »
If you want to use the static runtime libraries, you have to rebuild SFML with SFML_USE_STATIC_STD_LIBS set to true.

If you want to use the pre-built binaries, you have to use /MD or /MDd instead of /MT or /MTd
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

 

anything