Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » multiple definition of '_Unwind_Resume'

This thread is locked; no one can reply to it. rss feed Print
multiple definition of '_Unwind_Resume'
Edgar Reynaldo
Major Reynaldo
May 2007
avatar

I made a small library that links dynamically to allegro, and now I made a small test program that uses this library. However, it doesn't work :

c:/mingw/bin/../lib/gcc/mingw32/4.5.0/libgcc_eh.a(unwind-dw2.o):(.text+0x28c8): multiple definition of `_Unwind_Resume'
build\lib/libEagle5d.dll.a(d000015.o):(.text+0x0): first defined here

I tried adding -lgcc_eh to the linker options for the test program, but it still does it. I linked the library with and without -lgcc_eh and it still did it. So that's all four combinations that I tried.

Halp?

Edit
I was linking my library with the standard libraries statically using -static-libgcc and -static-libstdc++. As soon as I stopped doing that, then the program linked fine.

Go to: