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 - Nickmiste

Pages: [1]
1
General / Re: Game.exe has stopped working
« on: February 23, 2013, 11:07:19 pm »
Sorry I took so long to reply. I got SFML from the main website. My Code::Blocks version is 12.11. My MinGW version is 4.7.1 i believe.

2
General / Re: Game.exe has stopped working
« on: February 23, 2013, 09:09:55 pm »
The code I'm testing with is as follows:

#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}
 


I also ran the debugger:

#0 691C4AF9   sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int) () (C:\Users\User\Desktop\Game\Workspace\Game\bin\Debug\sfml-window-2.dll:??)
#1 00401416   main() (C:\Users\User\Desktop\Game\Workspace\Game\main.cpp:5)


When installing SFML, I first tried 1.6, but when that didn't work (same reason as now), I tried SFML 2.0. I followed the instructions on the website saying how to install it very carefully. I tried the debug and release configurations, and the .dll's are in both the debug and release folder with game.exe. That's about all I know.


3
General / Game.exe has stopped working
« on: February 23, 2013, 08:27:41 pm »
I have installed SFML to Code::Blocks (MinGW), and then I went to test it with the code from the tutorial. I press build and run, and the console comes up. A few seconds later, A window pops up saying game.exe has stopped working. What do I do?

Pages: [1]
anything