Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » [A5] Multiple definition of '_Unwind_Resume'

Credits go to Edgar Reynaldo and Matthew Leverton for helping out!
This thread is locked; no one can reply to it. rss feed Print
[A5] Multiple definition of '_Unwind_Resume'
J-Gamer
Member #12,491
January 2011
avatar

I'm having problems compiling a small A5 program to illustrate an effect of basic chasing. I'm getting a Linker error, of which the full error is this:

||=== Allegro5, Release ===|
c:\mingw\bin\..\lib\gcc\mingw32\4.5.0\libgcc_eh.a(unwind-dw2.o)|| multiple definition of `_Unwind_Resume'|
C:\MinGW\lib\liballegro-5.0.0-RC4-mt.a(d000015.o)|| first defined here|
||=== Build finished: 2 errors, 0 warnings ===|

Does anybody know what might be causing this?

" There are plenty of wonderful ideas in The Bible, but God isn't one of them." - Derezo
"If your body was a business, thought would be like micro-management and emotions would be like macro-management. If you primarily live your life with emotions, then you are prone to error on the details. If you over-think things all the time you tend to lose scope of priorities." - Mark Oates

Matthew Leverton
Supreme Loser
January 1999
avatar

J-Gamer
Member #12,491
January 2011
avatar

It says it can't find -lgcc-eh and when I link with -static-libgcc_eh, I get the same error...

EDIT:
I find it weird my search didn't bring that thread up...

" There are plenty of wonderful ideas in The Bible, but God isn't one of them." - Derezo
"If your body was a business, thought would be like micro-management and emotions would be like macro-management. If you primarily live your life with emotions, then you are prone to error on the details. If you over-think things all the time you tend to lose scope of priorities." - Mark Oates

Matthew Leverton
Supreme Loser
January 1999
avatar

J-Gamer said:

I find it weird my search didn't bring that thread up...

If you searched for "spaghetti dessert" then I doubt it would have came up.

You should download the latest version for 4.5.0 and see if that helps.

Be sure to clear all your intermediate object files so that you start with a clean build of your program.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

J-Gamer
Member #12,491
January 2011
avatar

Thanks Edgar ^^(It was getting late yesterday ._.) Now it compiles without a hassle.

" There are plenty of wonderful ideas in The Bible, but God isn't one of them." - Derezo
"If your body was a business, thought would be like micro-management and emotions would be like macro-management. If you primarily live your life with emotions, then you are prone to error on the details. If you over-think things all the time you tend to lose scope of priorities." - Mark Oates

Go to: