SFML community forums

Help => General => Topic started by: Contadotempo on October 16, 2010, 01:55:22 am

Title: [Solved]Problem Setting up Code::Blocks
Post 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
Title: [Solved]Problem Setting up Code::Blocks
Post by: nulloid on October 16, 2010, 03:32:10 am
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?
Title: [Solved]Problem Setting up Code::Blocks
Post by: Contadotempo on October 17, 2010, 05:42:54 pm
I'm pretty new to those terms  :shock: .
What could I do to fix the problem?
Title: [Solved]Problem Setting up Code::Blocks
Post by: Svenstaro on October 17, 2010, 06:03:48 pm
Just choose dwarf2 unwinding from the TDM setup instead of SJLJ.
Title: [Solved]Problem Setting up Code::Blocks
Post by: Contadotempo on October 17, 2010, 07:33:27 pm
Hum, I'm not very familiar with that.
Where can I find the TDM setup?
Title: [Solved]Problem Setting up Code::Blocks
Post by: Contadotempo on October 19, 2010, 02:32:12 pm
Anyone?
This only happens when I link to static libs.
But if I use dynamic libs I get the following error:
Quote
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.
Title: [Solved]Problem Setting up Code::Blocks
Post by: Contadotempo on October 20, 2010, 01:21:05 pm
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.