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

Pages: [1]
1
General / Re: SFML 2.1 program compiles but fails to run
« on: August 22, 2014, 04:55:01 pm »
Thanks.  :) Upgrading CodeBlocks to 13.12 did the trick. Program compiles successfully now.

2
General / Re: SFML 2.1 program compiles but fails to run
« on: August 22, 2014, 08:59:33 am »
BUMP

Can nobody give me any leads about this? This is the official SFML forums right? No one can help?

3
General / [SOLVED] SFML 2.1 program compiles but fails to run
« on: August 19, 2014, 11:12:29 am »
I'm using SFML 2.1 (SJLJ) for Windows / GCC (32bit) and am building the project in CodeBlocks 10.05.

I'm trying to run the following code and it crashes. It builds smoothly however.


#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;
}

Many may recognize that this is taken directly from the SFML 2.1 tutorial site so I doubt there is anything wrong with the code. I've followed all instructions carefully but I have no clue what's causing it.

Some screenshots showing the build options and the actual error output are provided below:









Pages: [1]
anything