SFML community forums
Help => General => Topic started by: wookie145 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
-
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