SFML community forums
Help => General => Topic started by: Astherix on May 17, 2018, 09:09:24 pm
-
Hi there, I am a somewhat experienced C++ programmer, and I have never encountered such an error. What is this?
1>------ Build started: Project: test, Configuration: Release x64 ------
1>Microsoft (R) Incremental Linker Version 14.11.25508.2
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>
1>"/OUT:C:\Users\zurio.000\source\repos\test\x64\Release\test.exe" "/LIBPATH:C:\Users\zurio.000\Desktop\Development\SFML-2.5.0\lib" "sfml-graphics-s.lib" "sfml-window-s.lib" "sfml-system-s.lib" opengl32.lib freetype.lib winmm.lib gdi32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST "/MANIFESTUAC:level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG:FULL "/PDB:C:\Users\zurio.000\source\repos\test\x64\Release\test.pdb" /OPT:REF /OPT:ICF /LTCG:incremental /TLBID:1 /DYNAMICBASE /NXCOMPAT "/IMPLIB:C:\Users\zurio.000\source\repos\test\x64\Release\test.lib" /MACHINE:X64 x64\Release\main.obj
1>sfml-graphics-s.lib(Image.cpp.obj) : error LNK2001: unresolved external symbol __std_swap_ranges_trivially_swappable_noalias
1>C:\Users\zurio.000\source\repos\test\x64\Release\test.exe : fatal error LNK1120: 1 unresolved externals
1>Done building project "test.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
There is nothing on Google regarding "__std_swap_ranges_trivially_swappable_noalias".
-
The solution is: Update Visual Studio
Unfortunately libraries built with Visual Studio are apparently (https://twitter.com/StephanTLavavej/status/994635155020042241) only forward compatible, so a library built with the latest Visual Studio version, won't work with one that's older. Kind of a shame, as I won't be installing an old toolchain, just so people don't have to upgrade. :D
Maybe this is just an issue, because of their minor release 15.7.x from 15.6.x, so hopefully the library will be stable under 15.7.x...