Code::Blocks Forums

User forums => Help => Topic started by: rolfarj on March 07, 2011, 02:07:11 am

Title: Problem compiling c++ win7 MinGW "_unwind_resume"
Post by: rolfarj on March 07, 2011, 02:07:11 am
Hi. I just reinstalled codeblocks because of some problems. Now, i cant compile my C++ projects (have not tried any other languages).

The message i get is "undefined reference to '_unwind_resume' ".

-I am running windows 7
-I downloaded the latest codeblocks with mingw included.
-I have included C:\Program Files\CodeBlocks\MinGW\bin to the system path
-I tried installing codeblocks withoud mingw and downloading mingw seperately. same result
-I also tried TDM-GCC with the same result
-Everything worked fine before i reinstalled :(

I have included an image of the error in the link below:
http://img695.imageshack.us/f/capture2igq.png/

Any idea? Ive spent 6 hours trying to solve this, so i appreciate any suggestions. I am pretty desperate by now


Title: Re: Problem compiling c++ win7 MinGW "_unwind_resume"
Post by: ollydbg on March 07, 2011, 05:13:22 am
you should first read here:
2.14 Q: How do I troubleshoot an compiler problem? (http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F)
Title: Re: Problem compiling c++ win7 MinGW "_unwind_resume"
Post by: Jenna on March 07, 2011, 06:48:56 am
Try to rebuild (clean and build) your projects.
Title: Re: Problem compiling c++ win7 MinGW "_unwind_resume"
Post by: rolfarj on March 07, 2011, 12:28:54 pm
Try to rebuild (clean and build) your projects.


Thank you so much Jens! I have no idea why that worked, but it did :D Saved me a lot of frustration. I owe you a beer.

(If anyone would like to explain why i needed to clean and build, that would be great. All installation paths are the same as before the re-install)
Title: Re: Problem compiling c++ win7 MinGW "_unwind_resume"
Post by: Jenna on March 08, 2011, 08:18:21 am
(If anyone would like to explain why i needed to clean and build, that would be great. All installation paths are the same as before the re-install)

Most likely, because your former and your actual compiler use different (incompatible) methods of error handling.