1
Graphics / Re: Getting a stack error using sf::Image that kills my prog
« on: August 22, 2011, 05:46:31 pm »
I had similar issues trying to code the sample about the sprites.
I was not able to understand what was going on in no way after hundred test I understood the problem was simply I was using the "debug" configuration in VC2008 but in the linker configuration option I was using the sfml-graphics-s.lib library.. the right one to use in "debug" is sfml-graphics-d.lib instead , then once the code is ok and I want to redistribuite I simply change the vc configuration to "release" where in the linker option I have sfml-graphics-s.lib
So
Debug configuration -> use sfml-xxx-d.lib in linker options
Release configuration-> use sfml-xxx-s.lib in linker options
obviously I'm talking about -s version because I don't want to use the .dll, this may not be your case
PS. in debug config, if you are using the debug dll version don't forget to add the "SFML_DYNAMIC" string in the C++ preprocessor definitions, else you'll get strange linker errors
I was not able to understand what was going on in no way after hundred test I understood the problem was simply I was using the "debug" configuration in VC2008 but in the linker configuration option I was using the sfml-graphics-s.lib library.. the right one to use in "debug" is sfml-graphics-d.lib instead , then once the code is ok and I want to redistribuite I simply change the vc configuration to "release" where in the linker option I have sfml-graphics-s.lib
So
Debug configuration -> use sfml-xxx-d.lib in linker options
Release configuration-> use sfml-xxx-s.lib in linker options
obviously I'm talking about -s version because I don't want to use the .dll, this may not be your case
PS. in debug config, if you are using the debug dll version don't forget to add the "SFML_DYNAMIC" string in the C++ preprocessor definitions, else you'll get strange linker errors