SFML community forums
Help => General => Topic started by: Contadotempo on October 16, 2010, 01:55:22 am
-
Yet again another thread of a problem I couldn't solve for myself... Hope I'm not getting annoying.
I tried to set up SFML on Code::Blocks, following the documentation on the tutorial section but I'm not being very successful.
I think I did everything right, but when I try to compile a simple code using static libraries (I.E. -lsfml-system-s), I get the following:
(http://img171.imageshack.us/img171/4710/capturarfr.jpg)
However, when I use -lsfml-system, it compiles just fine.
What could be wrong?
Thanks in advance
-
From the "_Unwind_Resume" part, I think you are using Mingw-TDM on windows. I guess your compiler uses an SJLJ-unwinding system, but sfml's static libs are compiled with dwarf2. Maybe this could be the problem?
-
I'm pretty new to those terms :shock: .
What could I do to fix the problem?
-
Just choose dwarf2 unwinding from the TDM setup instead of SJLJ.
-
Hum, I'm not very familiar with that.
Where can I find the TDM setup?
-
Anyone?
This only happens when I link to static libs.
But if I use dynamic libs I get the following error:
The procedure entry point _ZN2sf11SoundBuffer12LoadFromFileERKSs could not be located in the dynamic link library sfml-audio.dll
I have the dll's in the executable's directory.
I just want to compile a simple code but there's so many errors I don't understand.
Thanks in advance.
-
I was being an idiot just then, didn't know where to find the setup manager.
It's in the compiler folder (MinGW). Selected manage installation and changed it to dwarf2.
Thanks for the help, every thing's running smoothly now.