I am trying to link SFML 1.6 to my project in Code::Blocks 10.05 with MingW 4.4.1
I followed
this tutorial and used the same source code used as an example.
I am getting the following errors:
||=== SFML_test, Debug ===|
E:\Tools\SFML\SFML-1.6\lib\libsfml-system-s-d.a(Clock.o):Clock.cpp:(.eh_frame+0x11)||undefined reference to `__gxx_personality_v0'|
E:\Tools\SFML\SFML-1.6\lib\libsfml-system-s-d.a(Sleep.o):Sleep.cpp:(.eh_frame+0x11)||undefined reference to `__gxx_personality_v0'|
E:\Tools\SFML\SFML-1.6\lib\libsfml-system-s-d.a(Platform.o):D:\dev\sfml\sdk\SFML-1.6\src\SFML\System\Win32\Platform.cpp|42|undefined reference to `_Unwind_Resume'|
E:\Tools\SFML\SFML-1.6\lib\libsfml-system-s-d.a(Platform.o):Platform.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
||=== Build finished: 4 errors, 0 warnings ===|
I know this question has probably been asked a dozen times or more but before posting I: Reread the tutorial, searched the internet and double-checked the settings/options in Code::Blocks.
Additionally, I added the SFML_DYNAMIC define and "-lsfml-system-s-d" and copied "libgcc_s_dw2-1.dll" and "sfml-system-d.dll" to my project executable's directory and got it to work (in Debug configuration). I should also mention that "libgcc_s_dw2-1.dll" was to located in the MingW version I have (found "libgcc_s_sjlj-1.dll" instead). I got this .dll from the download suggested in the beginning of the tutorial. I still want to make it work with the static libraries though