So I have problem with static linking SFML 2.5.0...
I'm using Visual Studio 2017, Windows 8.1
Yes, I have SFML_STATIC in Preprocessor Definitions:
Yes, I'm linking Additional Include Directories to \include:
Yes, I'm linking Additional Library Directories to \lib:
Yes, I've downloaded 64x bit SFML and building my program on 64x bit configuration.
My Additional Dependencies for debug configuration:
(I tried like 20 other combinations, still same error)
Raw:
sfml-graphics-s-d.lib
sfml-window-s-d.lib
sfml-system-s-d.lib
opengl32.lib
freetype.lib
winmm.lib
gdi32.lib
sfml-audio-s-d.lib
openal32.lib
flac.lib
vorbisenc.lib
vorbisfile.lib
vorbis.lib
ogg.lib
And for release same as for debug but wihout -d prefix...
The error I get:
sfml-graphics-s-d.lib(Image.cpp.obj) : error LNK2019: 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@@YAPEAEQEAE00@Z)
fatal error LNK1120: 1 unresolved externals
Code I'm testing (this one from tutorial):
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
Help