SFML community forums

Help => General => Topic started by: Reborn on February 14, 2013, 11:29:45 am

Title: CodeBlocks 12.11 linking SFML
Post by: Reborn on February 14, 2013, 11:29:45 am
Hi,
i using SFML 2.0, but since i update my CodeBlocks from Version 10 to 12.11 i always get this kind of error:
Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
In sf::VideoMode::VideoMode (this=0x280, modeWidth=480, modeHeight=32, modeBitsPerPixel=2) at D:\developpement\sfml-master\src\SFML\Window\VideoMode.cpp:50 ()
My main-Function looks so:
int main(int argc, char **argv) {
    sf::RenderWindow window(sf::VideoMode(640, 480, 32), "Window");
    /*while (window.isOpen()) {
        sf::Event event;
        while (window.pollEvent(event)) {
            if (event.type == sf::Event::Closed)
                window.close();
        }
    }*/

    return 0;
}
I dont know what to do.
Title: Re: CodeBlocks 12.11 linking SFML
Post by: Laurent on February 14, 2013, 11:57:38 am
You must recompile SFML, or get a compatible version (gcc 4.7) from the unofficial nightly builds (http://en.sfml-dev.org/forums/index.php?topic=9513.0).
Title: Re: CodeBlocks 12.11 linking SFML
Post by: Reborn on February 14, 2013, 12:23:20 pm
It works!!! Thank you.