A couple of nights ago I downloaded CodeBlocks, in the latest of many doomed attempts to resume programming since I dabbled a few years ago. Doomed, unfortunately, because I never seem to be able to get an IDE working with a library. This time I thought I'd ask for help, so with any luck the next problem I have will be one I've written myself. ;)
I downloaded CodeBlocks, and Allegro (5.0.10), and also MinGW (4.8.1) separately, and following this gloriously straightforward article - http://www.buildandgun.com/2013/09/creating-codeblocks-project-and-linking.html - to the best of my ability. So the code I have is the code on that page, saved as a .cpp file. But when I try to build and run it, I get the following:
||=== Build: Debug in Template (compiler: GNU GCC Compiler) ===|
..\..\Libraries\allegro-5.0.10-mingw-4.7.0\lib\liballegro-5.0.10-static-mt.a(d3d_display_formats.o):d3d_display_formats.cpp|| undefined reference to `_Unwind_Resume'|
..\..\Libraries\allegro-5.0.10-mingw-4.7.0\lib\liballegro-5.0.10-static-mt.a(d3d_display_formats.o):d3d_display_formats.cpp|| undefined reference to `_Unwind_Resume'|
..\..\Libraries\allegro-5.0.10-mingw-4.7.0\lib\liballegro-5.0.10-static-mt.a(d3d_display_formats.o):d3d_display_formats.cpp:(.eh_frame+0x63)||undefined reference to `__gxx_personality_v0'|
||=== Build failed: 3 error(s), 0 warning(s) (0 minute(s), 2 second(s)) ===|
Now, I did try googling the key words from this (undefined reference to unwind resume/gxx personality), but I found the results to almost entirely impenetrable. As best I can figure, there's a mismatch between the version of MinGW that Allegro is expecting (4.7.0) and the version I have (4.8.1). But this is the newest version of Allegro, barring "potentially unstable" experimental builds.
Am I understanding the problem correctly?
Should I try to find the matching older version of MinGW and download that instead (and would I need to uninstall the current one)?
Or should I try one of the unstable builds of Allegro in the hopes that it might have caught up with the compiler version (though this cmake business always confuses me)?
Thanks for your time!