So I'm getting the following compile-time error while trying to use a static library:
undefined reference to `_imp___ZN2sf6StringC1EPKcRKSt6locale'
This is matched by twenty or so companions, basically three or four for each line of code in the example main.cpp given in the tutorial (
http://www.sfml-dev.org/tutorials/2.1/start-cb.php). There's a similar post around here on this forum that suggests it is a consequence of using the wrong version of SFML, but I've double checked and I'm using SJLJ and have my stuff pointed to SJLJ SFML.
Here's what I've double checked so far:
- I am linking to libsfml-xxx-s-d for my debug setup and libsfml-xxx-s for my release setup, and they go in graphics->window->system order as shown in the tutorial.
- I have SFML_STATIC set in my #defines.
- The program works if I have my setup use the SJLJ DLL's
Long story short, I'd like to at least be able to use the static library functionality, but it doesn't seem happy when I try to do so.