SFML community forums
Help => General => Topic started by: mvl on March 21, 2013, 09:16:02 pm
-
Hello I have a problem with instaling sfml 2 i compiled it and stuf by folowing the tutorials on the website:
compiling sfml with cmake,
instaling sfml 2 on code::blocks
but when I run the code from the tutorial on instaling sfml 2 on code blocks
I get an error from the moment the sf::Renderwindow has been called windows sais the program stopped working I recompiled it 3 times it stil happens this is my first Topic so sory if I forget somting
-
Did you select Code:blocks-MinGW Makefiles when in configuration for cmake-gui?
-
Well we're missing some important information, like the OS, the exact compiler and the exact SFML version. Also you should tell us, how you've setup Code::Blocks. Are you mixing Debug and Release modes? Are you mixing static and dynamic libraries? What happens if you run it via the debugger? ;)
-
I'm going to guess that you somewhat recently downloaded Code::Blocks w/ MinGW which comes with a version of GCC incompatible with the official SFML 2.0 RC
I would try recompiling with the nightly builds done by eXpl0it3r here above me. In his sig
-
first yes I did select the code::blocks-mingw makefiles
second my OS currently windows vista
I think the minGW compiler from the link with sfml 1.6 (I don't know if it cout couse errors becouse i compiled it with mingw)
sfml I don't know the exact version sorry I don't know how to see that
for Imbajoe witch version must i download then there are a couple
I link dynamicly so everything must be good
I always take debug
When I run in debug mode I get a "Call stack" window with
nr Address function
0 689829B1 sf::String::String(char const*, std::locale const&)()
file
D:\projects\c++\sfml\tests\sfmltest2\sfml-system-2.dll
another thing I fergot to ask is :is it normal you need to set the search directories compiler to the include folder in sfml's source?
O and thanks for helping
-
I solved it I think it was becouse I compiled it with the compiler from code::blocks but had code::blocks set to the old sfml recomended compiler and needed to remove that compiler so I reset the compiler in setings renamed the folder and it compiles fine now