Hello,
I've been looking around for a solution to this for several hours now and nothing I find has worked so far.
I'm trying to compile a program in Visual Studio 2017. Compilation works fine, but I get the following linker error:
unresolved external symbol ___std_swap_ranges_trivially_swappable_noalias referenced in function "unsigned char * __cdecl std::_Swap_ranges_unchecked<unsigned char,0>(unsigned char * const,unsigned char * const,unsigned char * const)" (??$_Swap_ranges_unchecked@E$0A@@std@@YAPAEQAE00@Z)
VS says it happens in sfml-graphics-s.lib. These are my additional dependencies:
sfml-graphics-s.lib;sfml-window-s.lib;sfml-audio-s.lib;sfml-network-s.lib;sfml-system-s.lib;opengl32.lib;winmm.lib;gdi32.lib;freetype.lib;openal32.lib;flac.lib;vorbisenc.lib;vorbisfile.lib;vorbis.lib;ogg.lib;ws2_32.lib;jpeg.lib;%(AdditionalDependencies)
I've configured the path to all these files, except opengl32.lib, winmm.lib, gdi32.lib (which windows should have by default). I'm pretty certain they're all readable by the linker though, because it complains differently if I move one.
I only use <SFML/Graphics.hpp> if that helps.
I've tried dynamic linking, which builds just fine, but the program crashes quite quickly after launch, even though I have provided it all the .dll files (it doesn't complain about not having them).
I'd much rather have a statically linked binary, although I'll survive with a dynamically linked one if it works properly.
Thank you for your help