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

Pages: [1]
1
General / Re: Code::Blocks and C++ has stopped working.
« on: August 12, 2013, 05:47:20 am »
I actually think that it was that I had not updated my Code::Blocks for quite some time and that it wasn't compatible with the version that I had. After I updated Code::Blocks it all worked fine.

Thank you for all your help.

2
General / Re: Code::Blocks and C++ has stopped working.
« on: August 12, 2013, 03:53:53 am »
Code: [Select]
#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 got the code directly from the tutorial provided on the SFML site.

3
General / [Solved] Code::Blocks and C++ has stopped working.
« on: August 12, 2013, 03:40:32 am »
I have tried to follow the tutorial to get SFML setup under Code::Blocks and when I try to compile and run the program using the code provided in the tutorial windows simply comes up with the executable has stopped working. I have redone the tutorial several times and I have made sure to download the correct version of SFML and it still will not run.

EDIT:

Also I have run the debugger and it keeps telling me that it is a segmentation fault.

Pages: [1]
anything