SFML community forums
Help => General => Topic started by: Hamed on January 30, 2013, 03:34:47 pm
-
I follow :
http://www.sfml-dev.org/tutorials/2.0/start-cb.php
and I install SFML now when I want to run my program I get error and I attach my error.
Also when I use "Debug / Continue" I get:
#0 691C4AF9 sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int) () (C:\CPP\FA\bin\Debug\sfml-window-2.dll:??) #1 00401416 main() (C:\CPP\FA\main.cpp:5)
[attachment deleted by admin]
-
There is simply no way in hell anybody could help you with this little information!
So please: What OS are you using? What compiler (+version)? What version of SFML? (if 2.0: self compiled, RC or unofficial nightlies?)
-
There is simply no way in hell anybody could help you with this little information!
I can ;D
You must recompile SFML because your gcc is a 4.7, and it is not compatible with the precompiled version of SFML that you downloaded (which was compiled with a gcc 4.4).
-
Haha well alright I already guessed that as well, because it is a problem that has been reoccurring a couple times, but I wanted to be sure.
Providing almost no information about a crash makes it extremely hard to impossible for everybody who is willing to help in every other case...
Also a simple google search (https://www.google.de/webhp?hl=de&tab=ww#hl=de&tbo=d&output=search&sclient=psy-ab&q=+site:en.sfml-dev.org+sfml+videomode+crash&oq=+site:en.sfml-dev.org+sfml+videomode+crash&gs_l=hp.3...1072.1072.0.1687.1.1.0.0.0.0.176.176.0j1.1.0...0.0...1c.1.-fynW9QPW5k&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.&bvm=bv.41642243,d.Yms&fp=e139f6552f397a7&biw=1280&bih=932) would have brought up the same answer.
-
Where can I download source and recompile SFML?
-
You can either download the source from github (https://github.com/SFML/SFML) and compile it with cmake using the tutorial (http://www.sfml-dev.org/tutorials/2.0/compile-with-cmake.php) or you can use the precompiled unofficial nighly builds (http://en.sfml-dev.org/forums/index.php?topic=9513.0).
-
I use nightly builds but now I get:
[attachment deleted by admin]
-
What nighly build have downloaded? What's your MinGW version?
-
For the compiler that ships with Code::Blocks you need the matching builds (TDM).
Also don't forget to make a clean rebuild!
-
Code::Blocks : 12.11
MinGW : 4.7.2 (Integrated with Code::Blocks install)
-
MinGW : 4.7.2 (Integrated with Code::Blocks install)
Not possible. Code::Blocks ships with MinGW GCC 4.7.1 TDM, which matches my TDM nightly builds. ;)
-
Ok!
I compile 1st application and it ok.
But it is ok just when I use Code::Blocks and when I want to run application without code::Blocks I get:
The program can't start because libgcc_s_dw2-1.dll is missing from your computer.Try reinstalling the program to fix this program.
-
You must copy the libgcc_s_dw2-1.dll file (from your mingw/bin folder) next to the executable.