SFML community forums
Help => Window => Topic started by: Sord on May 04, 2011, 02:10:45 pm
-
Hi
I am tested much things but here is most simply example:
#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?
-
If you have an ATI graphics card with drivers > 10.9 you must link statically to avoid this problem.
-
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'|
-
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.
-
Yep I just found same from there
http://www.sfml-dev.org/forum/viewtopic.php?t=2442&sid=b689aa6c1d14f4157c94111b68e5eb63
Thanks