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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sfml_coder

Pages: [1]
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

Pages: [1]