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

Pages: [1]
1
General / Re: Problem to get started with SFML
« on: June 30, 2013, 08:54:34 pm »
Hm, -d for debug and none for release, exactly what I've done. :(

2
General / Re: Problem to get started with SFML
« on: June 30, 2013, 02:55:01 pm »
Yeah, tried to reinstall MinGW.
No success. :(

3
General / Re: Problem to get started with SFML
« on: June 30, 2013, 12:00:52 am »
Windows.^^
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;
}

It's an example code from the tutorial I linked. ;)

4
General / Problem to get started with SFML
« on: June 29, 2013, 01:09:16 pm »
Hey guys,

I'm just trying to get started with SFML by using MinGW.
I have SFML 2.0 and MinGW 4.7.2 .
I'm using Code Blocks and I have the dw2 version of MinGW.
So, I've obeyed this tutorial (http://sfml-dev.org/tutorials/2.0/start-cb.php) and thought, I've done well, but when I try to run the example code in the tutorial, I get a "Segmentation fault" error.

Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
In std::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> >::capacity (this=0x6fcc8d40) at d:/programmes/mingw32-4.7/bin/../lib/gcc/mingw32/4.7.2/include/c++/bits/basic_string.h:774 ()

So, why do the code not run?

regards Challenger :)

Pages: [1]
anything