FiveHGC.lib - Undefined reference ot _Unwind_Resume

Post Reply
MarioCdeS
Posts: 1
Joined: Mon Aug 29, 2016 1:57 pm

FiveHGC.lib - Undefined reference ot _Unwind_Resume

Post by MarioCdeS »

Hi, all.

When linking my application, I get the following error:

/fwh.2012.04/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.text+0xe08): undefined reference to `_Unwind_Resume'
/fwh.2012.04/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.eh_frame+0x2b7): undefined reference to `__gxx_personality_v0'

I recently upgraded to the nightly build of Harbour (3.2.0dev r1608101712), which resulted in this error. I am linking FWH 2012-04 build. Is there a lib binary for the latest Harbour/MinGW? Should I upgrade to latest FWH?

Thanks
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: FiveHGC.lib - Undefined reference ot _Unwind_Resume

Post by karinha »

João Santos - São Paulo - Brasil
User avatar
concentra
Posts: 107
Joined: Mon Nov 14, 2005 10:15 am
Location: Brazil

Re: FiveHGC.lib - Undefined reference ot _Unwind_Resume

Post by concentra »

After updating Harbour with the nightly build and a day of walking in circles without getting anywhere seeking the solution to this problem, I finally figure out that MinGW GCC have 3 different "Exception handling" systems: SJLJ, DWARF, and SEH.
Harbour nightly build was using SJLJ version:

Code: Select all

gcc --version
gcc (i686-posix-sjlj-rev0, Built by MinGW-W64 project) 5.3.0
Copyright (C) 2015 Free Software Foundation, Inc.
and DWARF one was needed.
In my case I looked for the very same version:
https://sourceforge.net/projects/mingw- ... six/dwarf/

Code: Select all

gcc --version
gcc (i686-posix-dwarf-rev0, Built by MinGW-W64 project) 5.3.0
Copyright (C) 2015 Free Software Foundation, Inc.
[[]] Maurício Faria
Post Reply