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

Author Topic: Unresolved external symbol __std_swap_ranges_trivially_swappable_noalias  (Read 4361 times)

0 Members and 1 Guest are viewing this topic.

Astherix

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Hi there, I am a somewhat experienced C++ programmer, and I have never encountered such an error. What is this?

Code: [Select]
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".
« Last Edit: May 17, 2018, 09:11:51 pm by Astherix »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
The solution is: Update Visual Studio

Unfortunately libraries built with Visual Studio are apparently 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...
« Last Edit: May 18, 2018, 07:13:54 pm by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/