When attempting to build a Code::Blocks project, I am running into the errors in the title. The build log looks a little something like this:
C:\SFML-2.5.1\lib\libsfml-graphics-s-d.a(VertexArray.cpp.obj)||In function `ZN2sf11VertexArrayC2ENS_13PrimitiveTypeEj':|D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\VertexArray.cpp|45|undefined reference to `_Unwind_Resume'|C:\SFML-2.5.1\lib\libsfml-graphics-s-d.a(VertexArray.cpp.obj)||In function `ZNSt6vectorIN2sf6VertexESaIS1_EEC1EjRKS2_':|C:\Dev\MinGW32-PosixDwarf730r0\lib\gcc\i686-w64-mingw32\7.3.0\include\c++\bits\stl_vector.h|284|undefined reference to `_Unwind_Resume'|C:\SFML-2.5.1\lib\libsfml-graphics-s-d.a(VertexArray.cpp.obj)||In function `ZNSt12_Vector_baseIN2sf6VertexESaIS1_EEC2EjRKS2_':|C:\Dev\MinGW32-PosixDwarf730r0\lib\gcc\i686-w64-mingw32\7.3.0\include\c++\bits\stl_vector.h|137|undefined reference to `_Unwind_Resume'|C:\SFML-2.5.1\lib\libsfml-graphics-s-d.a(VertexArray.cpp.obj)||In function `ZNSt6vectorIN2sf6VertexESaIS1_EE17_M_default_appendEj':|C:\Dev\MinGW32-PosixDwarf730r0\lib\gcc\i686-w64-mingw32\7.3.0\include\c++\bits\vector.tcc|583|undefined reference to `_Unwind_Resume'|C:\SFML-2.5.1\lib\libsfml-graphics-s-d.a(VertexArray.cpp.obj)||In function `ZNSt6vectorIN2sf6VertexESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_':|C:\Dev\MinGW32-PosixDwarf730r0\lib\gcc\i686-w64-mingw32\7.3.0\include\c++\bits\vector.tcc|436|undefined reference to `_Unwind_Resume'|C:\SFML-2.5.1\lib\libsfml-graphics-s-d.a(VertexArray.cpp.obj):C:\Dev\MinGW32-PosixDwarf730r0\lib\gcc\i686-w64-mingw32\7.3.0\include\c++\bits\stl_uninitialized.h|530|more undefined references to `_Unwind_Resume' follow|C:\SFML-2.5.1\lib\libsfml-graphics-s-d.a(VertexArray.cpp.obj):VertexArray.cpp:(.eh_frame+0x4b)||undefined reference to `__gxx_personality_v0'|C:\SFML-2.5.1\lib\libsfml-graphics-s-d.a(VertexArray.cpp.obj):VertexArray.cpp:(.eh_frame$_ZNSt6vectorIN2sf6VertexESaIS1_EEC1Ev+0x13)||undefined reference to `__gxx_personality_v0'|C:\SFML-2.5.1\lib\libsfml-graphics-s-d.a(VertexArray.cpp.obj):VertexArray.cpp:(.eh_frame$_ZNSt6vectorIN2sf6VertexESaIS1_EED1Ev+0x13)||undefined reference to `__gxx_personality_v0'|C:\SFML-2.5.1\lib\libsfml-graphics-s-d.a(VertexArray.cpp.obj):VertexArray.cpp:(.eh_frame$_ZNSt6vectorIN2sf6VertexESaIS1_EEC1EjRKS2_+0x13)||undefined reference to `__gxx_personality_v0'|C:\SFML-2.5.1\lib\libsfml-graphics-s-d.a(VertexArray.cpp.obj):VertexArray.cpp:(.eh_frame$_ZNSt12_Vector_baseIN2sf6VertexESaIS1_EED2Ev+0x13)||undefined reference to `__gxx_personality_v0'|||More errors follow but not being shown.|||Edit the max errors limit in compiler options...|||=== Build failed: 50 error(s), 0 warning(s) (0 minute(s), 2 second(s)) ===|
As you can see, this is not incredibly conducive to any project building taking place.
After that info dump come my questions:
1) What does "undefined reference to `_Unwind_Resume'" even mean?
2) What does "undefined refernce to _gxx_personality_v0" mean?
3) (possibly most importantly) How do I fix this? I've tried uninstalling and reinstalling Code::Blocks, unlinking and relinking SFML, and creating a new project and using that.
Am I just being stupid and missing something obvious, or is it some weird error code that only pops up when you've really screwed something up?
Editor: Code::Blocks 17.12Library: SFML 2.5.1No compiler flags other than default Code::Blocks flagsThe compiler being used is the one provided by default in the codeblocks_17.12_mingw_setup.exe file, I'm assuming that means that it's using MINGW as the compiler?
There's a simple window loop in the program, but other than that, I've got nothing.
using namespace sf;int main(){RenderWindow gameWindow(VideoMode(800,600), "WIP title"); gameWindow.setFramerateLimit(60); Event event; while(gameWindow.isOpen()){ while(gameWindow.pollEvent(event)){ if(event.type == Event::Closed){ gameWindow.close(); } } gameWindow.clear(); gameWindow.display(); }}
Cheers all :)