SFML community forums
Help => Window => Topic started by: HeinzK on October 26, 2013, 09:34:24 am
-
deleted
-
Well you probably did something wrong, so show us the exact code you used (yes we know what it should be, but maybe you mistyped it), all the relevant VS settings, what files are in the folder where you're running it, and anything else you can think of (I have no idea where it is).
And make sure you're not mixing static/dynamic or debug/release libraries; that's an insanely common error.
-
I don't think this solves your core problem, but part of the info you added implies you aren't aware of this, so: is your visual studio 32-bit or 64-bit? This is different from the OS being 32-bit or 64-bit, and any libraries compiled with one won't work with the other (even though 32-bit standalone executables normally work fine on 64-bit Windows).
Even more minor thing: Don't use main(void). Either just main(), or main(int argc, char** argv) or some special thing like _WinMain. The (void) thing is a relic from C.
Hopefully someone else will spot the real problem I'm missing.
-
Try to use the default value for Zeichensatz (should be "multibyte").
-
Are you sure that you've downloaded the SFML SDK for VC++ 11 and not for VC++ 10, for example?
-
Make sure you create a new empty project and don't change any compiler flags, only the things that are necessary to make it work (like include/library paths and linker dependencies). Triple-check that you follow the official tutorial exactly (I know it's annoying, but this usually works, so it's worth checking).
If you still don't succeed, then recompile the SFML code for VS 2012 using CMake, again following the tutorial step by step.
-
Thats a bit sad you gave up, if its just an incompatibility with the library version you could have tried compiling SFML yourself, there is the tutorial URL: http://www.sfml-dev.org/tutorials/2.1/compile-with-cmake.php