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

Author Topic: SFML 2.3.1 libs not working  (Read 1727 times)

0 Members and 1 Guest are viewing this topic.

DT

  • Newbie
  • *
  • Posts: 3
    • View Profile
SFML 2.3.1 libs not working
« on: July 21, 2015, 02:34:54 am »
Hi (first post),

I've been a user of SFML for several years now, but for some reason, while linking to the libs in 2.3.1 I receive errors.

-Using GCC 4.8.1, with codeblocks

Any ideas to help me out?

Errors:
..\SFML-2.3.1\lib\libsfml-graphics-s.a(CircleShape.cpp.obj):CircleShape.cpp:(.text+0xe9): undefined reference to `_Unwind_Resume'
..\SFML-2.3.1\lib\libsfml-graphics-s.a(CircleShape.cpp.obj):CircleShape.cpp:(.eh_frame+0x63): undefined reference to `__gxx_personality_v0'
..\SFML-2.3.1\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0x35): undefined reference to `_Unwind_Resume'
..(List continues to indicate an error with the graphics-static lib, many `_Unwind_Resume' errors)
..\SFML-2.3.1\lib\libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x14f4): undefined reference to `glDrawArrays@12'

...
I could always stay on 2.0, but would like to try 2.3.1

Thanks
« Last Edit: July 21, 2015, 02:54:42 am by DT »

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: SFML 2.3.1 libs not working
« Reply #1 on: July 21, 2015, 03:00:17 am »
Are you linking all of SFML's dependencies as well?
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

DT

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: SFML 2.3.1 libs not working
« Reply #2 on: July 21, 2015, 03:24:38 am »
Holy...

"Starting from SFML 2.2, when static linking, you will have to link all of SFML's dependencies to your project as well"

Okay, interesting.
Much appreciated, Thanks Hapax.

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: SFML 2.3.1 libs not working
« Reply #3 on: July 21, 2015, 03:30:35 am »
You're welcome.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*