Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8802499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:06:06+00:00 2026-06-14T01:06:06+00:00

This code makes the program freeze (Game.exe has stopped working): #include <SFML/Graphics.hpp> #include <SFML/Window.hpp>

  • 0

This code makes the program freeze (“Game.exe has stopped working”):

#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>

int main()
{

    sf::Clock clock;
    clock.getElapsedTime();

    return 0;
}

However, this doesn’t crash:

#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>

int main()
{

    sf::Clock clock;

    return 0;
}

I’m using SFML 2.0, Windows 7, MinGW 4.70 (Code::Blocks). I don’t know why, I followed all instructions to link the libraries and nothing seems to be working.

I might be missing something simple through my anger (I’ve been trying to run sample code for a week, nothing has been working), so can anybody throw me a bone?

Other details:

  • Linking to the -d libraries didn’t help
  • I have all .dll’s in the same directory as the .exe
  • Debug and Release mode don’t help
  • I have the application set to “GUI Application,” and “Console Application” doesn’t work either

GDB Spits out a seg. fault:

Program received signal SIGSEGV, Segmentation fault.
In sf::Clock::Clock() () (C:\Users\kworden\Documents\Work\Programming\Game\bin\Debug\sfml-system-2.dll)
At C:\Users\kworden\Documents\Work\Programming\Game\main.cpp:8

SOLUTION:

Compile the libraries yourself. I used the tutorial here and relinked to the libs generated by CMake.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T01:06:08+00:00Added an answer on June 14, 2026 at 1:06 am

    Copying the answer from the comment:

    I googled this just to see what this lib was an all indications are that you need to recompile the lib: en.sfml-dev.org/forums/index.php?topic=8726.0

    This did fix the issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

my program makes a random name that could have a-z this code makes a
So i have this code which makes a box, but want to make the
I have this code that makes a string and then echos the loop out
I just came a cross this nice code that makes this scatter matrix plot:
this line of the code makes the form see-through User32Wrappers.SetLayeredWindowAttributes(Me.Handle, 0, _ 255 *
In this C++ code, sorting the data ( before the timed region) makes the
I don't need this declaration because it only makes my code big and unreadable.
I have this code: XDocument xdoc = XDocument.Parse(xml); XElement xe = xdoc.Root.Element(program); string[] data
I'm working on a program that makes heavy use of cout << strSomething; to
I have a Python 2.5 program with code at https://www.dropbox.com/s/wh1sgpsd248x85m/PopGen.zip When I execute this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.