SFML community forums

Help => General => Topic started by: DT on July 21, 2015, 02:34:54 am

Title: SFML 2.3.1 libs not working
Post by: DT 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
Title: Re: SFML 2.3.1 libs not working
Post by: Hapax on July 21, 2015, 03:00:17 am
Are you linking all of SFML's dependencies as well?
Title: Re: SFML 2.3.1 libs not working
Post by: DT 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.
Title: Re: SFML 2.3.1 libs not working
Post by: Hapax on July 21, 2015, 03:30:35 am
You're welcome.