Author Topic: Problem compiling c++ win7 MinGW "_unwind_resume"  (Read 3946 times)

Offline rolfarj

  • Single posting newcomer
  • *
  • Posts: 2
Problem compiling c++ win7 MinGW "_unwind_resume"
« 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



Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5242
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Problem compiling c++ win7 MinGW "_unwind_resume"
« Reply #1 on: March 07, 2011, 05:13:22 am »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7253
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Problem compiling c++ win7 MinGW "_unwind_resume"
« Reply #2 on: March 07, 2011, 06:48:56 am »
Try to rebuild (clean and build) your projects.

Offline rolfarj

  • Single posting newcomer
  • *
  • Posts: 2
Re: Problem compiling c++ win7 MinGW "_unwind_resume"
« Reply #3 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)

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7253
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Problem compiling c++ win7 MinGW "_unwind_resume"
« Reply #4 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.