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

Author Topic: Program jammed when creating window  (Read 1253 times)

0 Members and 1 Guest are viewing this topic.

Sord

  • Newbie
  • *
  • Posts: 3
    • View Profile
Program jammed when creating window
« on: May 04, 2011, 02:10:45 pm »
Hi

I am tested much things but here is most simply example:

 
Code: [Select]

#include <iostream>
#include <SFML/Window.hpp>

int main(){
    sf::Window App(sf::VideoMode(800, 600, 32), "SFML OpenGL");
    return 0;
}


Program jammed and I get just compiling message:
Checking for existence: C:\Ohjelmointi\Koodit\Cpp\MapEdit\bin\Debug\MapEdit.exe
Executing: "C:\Ohjelmointi\CodeBlocks/cb_console_runner.exe" "C:\Ohjelmointi\Koodit\Cpp\MapEdit\bin\Debug\MapEdit.exe"  (in C:\Ohjelmointi\Koodit\Cpp\MapEdit\.)

I am using codeblocks and sfml SDK. Everything work well so far I test Ogre3D framework tutorial. After that I am tried reinstall IDE (also diffrent one), librarys and even reinstalled whole windows. Same project works well in my laptop.

Is there solution on earth or is that just god's hate?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Program jammed when creating window
« Reply #1 on: May 04, 2011, 02:14:52 pm »
If you have an ATI graphics card with drivers > 10.9 you must link statically to avoid this problem.
Laurent Gomila - SFML developer

Sord

  • Newbie
  • *
  • Posts: 3
    • View Profile
Program jammed when creating window
« Reply #2 on: May 04, 2011, 02:27:55 pm »
Ok thanks. But how I really do it? If I just link the sfml-window-s I get lots of errors like:

.........\libsfml-window-s.a(VideoMode.o):VideoMode.cpp:(.eh_frame+0x11)||undefined reference to `__gxx_personality_v0'|

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Program jammed when creating window
« Reply #3 on: May 04, 2011, 02:35:14 pm »
That's because your MinGW version doesn't match the one that was used to compile SFML. You must either recompile SFML with your own version of MinGW, or install the MinGW package that is given in the Code::Blocks tutorial.
Laurent Gomila - SFML developer

Sord

  • Newbie
  • *
  • Posts: 3
    • View Profile
Program jammed when creating window
« Reply #4 on: May 04, 2011, 02:36:48 pm »

 

anything