Jump to content
  • Advertisement
Sign in to follow this  
SoulHeart

SFML with Code Blocks

This topic is 2515 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need help setting up SFML with Code Blocks. I followed the SFML tutorial on how to do it and still no luck. Thanks guys.
My error message: libgcc_s_dw2_1.dll wasn't found(my error message isn't a build error because it builds with 0 errors, the message pops up when i try to run the program

#include <SFML/System.hpp>
#include <iostream>
int main()
{
sf::Clock Clock;
while (Clock.GetElapsedTime() < 5.f)
{
std::cout << Clock.GetElapsedTime() << std::endl;
sf::Sleep(0.5f);
}
return 0;
}

Share this post


Link to post
Share on other sites
Advertisement
That's normal. This DLL should be in the bin directory of your MinGW compiler, copy it and paste it into your project's folder ;)

Share this post


Link to post
Share on other sites
Ok i actually had to download MinGW again and it work fine now. Thanks for your help I thought it would be a much harder fix.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!