FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FiveHGC.lib - Undefined reference ot _Unwind_Resume
Posts: 1
Joined: Mon Aug 29, 2016 01:57 PM
FiveHGC.lib - Undefined reference ot _Unwind_Resume
Posted: Tue Aug 30, 2016 07:12 AM

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

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: FiveHGC.lib - Undefined reference ot _Unwind_Resume
Posted: Tue Aug 30, 2016 12:59 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 124
Joined: Mon Nov 14, 2005 10:15 AM
Re: FiveHGC.lib - Undefined reference ot _Unwind_Resume
Posted: Fri Jun 09, 2017 05:57 PM
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 (fw): Select all Collapse
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-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/5.3.0/threads-posix/dwarf/

Code (fw): Select all Collapse
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

Continue the discussion