Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: CodeBlocks 12.11 linking SFML  (Read 1191 times)

0 Members and 1 Guest are viewing this topic.

Reborn

  • Newbie
  • *
  • Posts: 25
    • View Profile
CodeBlocks 12.11 linking SFML
« 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: CodeBlocks 12.11 linking SFML
« Reply #1 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.
Laurent Gomila - SFML developer

Reborn

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: CodeBlocks 12.11 linking SFML
« Reply #2 on: February 14, 2013, 12:23:20 pm »
It works!!! Thank you.

 

anything