SFML community forums

Help => General => Topic started by: Viktory on August 01, 2012, 04:57:02 am

Title: Test program crashes at sf::Clock instantiation
Post by: Viktory on August 01, 2012, 04:57:02 am
I have been attempting to compile and run the test program on Code::Blocks using the dynamic libraries, but the program seems to crash whenever I create in instance of sf::Clock.  The program compiles and links fine, but the resulting program crashes on a call to sf::Clock.  I am using the dynamic libraries, and have copied the dll's to the executable's directory, but the program crashes regardless.

Any help appreciated.
Title: Re: Test program crashes at sf::Clock instantiation
Post by: Laurent on August 01, 2012, 08:00:10 am
Which version of SFML? Which version of gcc? Which SFML package did you download from the website (there are two different for Windows/gcc)?
Title: Re: Test program crashes at sf::Clock instantiation
Post by: Viktory on August 01, 2012, 09:47:34 am
SFML full SDK 1.6, with the GCC 4.7.0
Title: Re: Test program crashes at sf::Clock instantiation
Post by: Laurent on August 01, 2012, 09:48:11 am
You must recompile SFML.
Title: Re: Test program crashes at sf::Clock instantiation
Post by: eXpl0it3r on August 01, 2012, 11:31:52 am
SFML full SDK 1.6, with the GCC 4.7.0
It's also strongly adviced to switch to SFML 2, since IMHO is more stable than SFML 1.6 (no ATI bug and way cleaner API). ;)
Title: Re: Test program crashes at sf::Clock instantiation
Post by: Aleksandros on September 11, 2012, 08:50:08 pm
I have the same problem with SFML 2.0 and Mingw(GCC 4.7.0) . Program is compiling and link successfully but after running i get crash.

I suspect that I need to recompile the SFML, but how I can do this without sources?

[attachment deleted by admin]
Title: Re: Test program crashes at sf::Clock instantiation
Post by: Laurent on September 11, 2012, 09:38:11 pm
Quote
I suspect that I need to recompile the SFML
Yep.

Quote
but how I can do this without sources?
You obviously need SFML sources... :P