Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [Solved]Problem Setting up Code::Blocks  (Read 3221 times)

0 Members and 1 Guest are viewing this topic.

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
[Solved]Problem Setting up Code::Blocks
« 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:


However, when I use -lsfml-system, it compiles just fine.
What could be wrong?

Thanks in advance

nulloid

  • Full Member
  • ***
  • Posts: 134
    • View Profile
[Solved]Problem Setting up Code::Blocks
« Reply #1 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?

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
[Solved]Problem Setting up Code::Blocks
« Reply #2 on: October 17, 2010, 05:42:54 pm »
I'm pretty new to those terms  :shock: .
What could I do to fix the problem?

Svenstaro

  • Full Member
  • ***
  • Posts: 222
    • View Profile
[Solved]Problem Setting up Code::Blocks
« Reply #3 on: October 17, 2010, 06:03:48 pm »
Just choose dwarf2 unwinding from the TDM setup instead of SJLJ.

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
[Solved]Problem Setting up Code::Blocks
« Reply #4 on: October 17, 2010, 07:33:27 pm »
Hum, I'm not very familiar with that.
Where can I find the TDM setup?

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
[Solved]Problem Setting up Code::Blocks
« Reply #5 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.

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
[Solved]Problem Setting up Code::Blocks
« Reply #6 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.

 

anything