Compile Error using FW17.07, Harbour MinGW

Compile Error using FW17.07, Harbour MinGW

Postby dmajkic » Wed Sep 06, 2017 8:55 pm

Where can we find version of harbour and mingw/gcc that is used to build newest FWH?
It looks like there is some missmatch with new nightly Harbour and FWH.

With newest Harbour Nightly and newst FWH, we have these errors:
Code: Select all  Expand view  RUN
c:/fwh3/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.text+0xe62): undefined reference to `_Unwind_Resume'
c:/fwh3/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.eh_frame+0x2ab): undefined reference to `__gxx_personality_v0'

c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.text+0x438): undefined reference to `_Unwind_Resume'
c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.text+0x44c): undefined reference to `_Unwind_Resume'

c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.text+0x460): undefined reference to `_Unwind_Resume'
c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.text+0x13e5): undefined reference to `_Unwind_Resume'

c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.text+0x13f9): undefined reference to `_Unwind_Resume'
c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.text+0x140d): more undefined references to `_Unwind_Resume'
follow
c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame+0xdf): undefined reference to `__gxx_personality_v0'
c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame$_ZNK7Gdiplus6Bitmap5CloneEv+0x13): undefined reference to `__gxx_personality_v0'

c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame$_ZN7Gdiplus6Matrix8RotateAtEfRKNS_6PointFENS_11MatrixOrderE+0x13): undefined reference to `__gxx_personality_v0'
c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame$_ZN7Gdiplus19LinearGradientBrushC1ERKNS_5PointES3_RKNS_5ColorES6_+0x13): undefined reference to `__gxx_personality_v0'

c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame$_ZNK7Gdiplus19LinearGradientBrush5CloneEv+0x13): undefined reference to `__gxx_personality_v0'
c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame$_ZN7Gdiplus10SolidBrushC1ERKNS_5ColorE+0x13): more undefined references to `__gxx_personality_v0'
follow
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0x4b): undefined reference to `_Unwind_Resume'
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0xb4): undefined reference to `_Unwind_Resume'

c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0x10b): undefined reference to `_Unwind_Resume'
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0x2fa): undefined reference to `_Unwind_Resume'

c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0x58e): undefined reference to `_Unwind_Resume'
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0x612): more undefined references to `_Unwind_Resume'
follow
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZN7Gdiplus19LinearGradientBrushC1ERKNS_4RectERKNS_5ColorES6_NS_18LinearGradientModeE+0x13): undefined reference to `__gxx_personality_v0'
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZN7Gdiplus8MetafileC1EP7IStream+0x13): undefined reference to `__gxx_personality_v0'

c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZNK7Gdiplus8Metafile5CloneEv+0x13): undefined reference to `__gxx_personality_v0'
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZN7Gdiplus17PathGradientBrushC1EPKNS_12GraphicsPathE+0x13): undefined reference to `__gxx_personality_v0'

c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZNK7Gdiplus17PathGradientBrush5CloneEv+0x13): undefined reference to `__gxx_personality_v0'
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZN7Gdiplus8Graphics9FromImageEPNS_5ImageE+0x13): more undefined references to `__gxx_personality_v0'
follow
dmajkic
 
Posts: 14
Joined: Fri Mar 02, 2012 11:08 am

Re: Compile Error using FW17.07, Harbour MinGW

Postby Antonio Linares » Thu Sep 07, 2017 7:39 am

What MinGW gcc version are you using ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42117
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Compile Error using FW17.07, Harbour MinGW

Postby dmajkic » Thu Sep 07, 2017 11:50 am

What MinGW gcc version are you using ?


The one from the Harbour Nightly builds. It is here, in the comp subdir.
https://sourceforge.net/projects/harbou ... s/nightly/

I can tell that FWH is built with mingw version that has DWARF stack unwinding (that produces "undefined reference to `_Unwind_Resume'")
and I can tell that some GdiPlus functions are missing from the HB Nightly, which means that FWH uses newer MinGW version.

I guess it is something like MinGW-i686-dwarf, but I think It would be nice to have both Harbour and MinGW used to build FWH as binary downloads.
On the FWH downlod link, there are BCC Harbour and MSVC Harbout, but no MinGW.
dmajkic
 
Posts: 14
Joined: Fri Mar 02, 2012 11:08 am

Re: Compile Error using FW17.07, Harbour MinGW

Postby dmajkic » Thu Sep 14, 2017 11:16 am

It would be nice to have both Harbour and MinGW verions used to build FWH as binary downloads.

Antonio, any info on this?

Thanks!
dmajkic
 
Posts: 14
Joined: Fri Mar 02, 2012 11:08 am

Re: Compile Error using FW17.07, Harbour MinGW

Postby Antonio Linares » Thu Sep 14, 2017 11:53 am

It is here:

https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/harbour_3.2_32bits_MinGW_20141218.zip

but it uses old Harbour and MinGW gcc versions

We are going to update it, once we know what MinGW gcc version to use :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42117
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Compile Error using FW17.07, Harbour MinGW

Postby dmajkic » Fri Sep 15, 2017 7:11 am

We are going to update it, once we know what MinGW gcc version to use :-)

Thank you!
dmajkic
 
Posts: 14
Joined: Fri Mar 02, 2012 11:08 am

Re: Compile Error using FW17.07, Harbour MinGW

Postby Antonio Linares » Fri Sep 15, 2017 7:48 am

What MinGW gcc version are you using ?

c:\MinGW\bin>gcc --version

gcc (MinGW.org GCC-6.3.0-1) 6.3.0
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42117
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Compile Error using FW17.07, Harbour MinGW

Postby dmajkic » Fri Sep 15, 2017 2:44 pm

What MinGW gcc version are you using ?

It is difficult to answer, since we are using:

* FWH (commercial product - and we have libs),
* FRX (commercial component - we have libs),
* LetoDB (open source - build it ourself)
* OpenSSL and CURL (opensource , but not that easy to build)
* Experimenting with LetoDBf (free, but libs only)
* We also use QtContribs, but in separate instance (comes prebuilt)

We need to have FRX, FWH, OpenSSL+CURL, LetoDB. Since FWH have C++ code (for GdiPlus), exception handling
is also important - FWH uses DWARF, and FRX have no C++code, so DWARF dictates everything else.

We had intention to use newest Harbour Nightly, and migrate code to it. But than we find out that
HB Nightly builds are using SJLJ exception handling making it incompatible with FWH.

It would be great to have binary download of MinGW FWH, with compiler and harbour.
Only thing we must check is that it works with FRX (which is a small lib gluing external frx.dll)
Other components, like curl and openssl and LetoDb we can build ourself with supplide compiler.

So - GCC 6.3.0 is fine. It would be great to have both FWH and newish Harbour built with it,
and use that as core development environment.
dmajkic
 
Posts: 14
Joined: Fri Mar 02, 2012 11:08 am

Re: Compile Error using FW17.07, Harbour MinGW

Postby Antonio Linares » Fri Sep 15, 2017 8:39 pm

Building Harbour with MinGW gcc 6.3.0

git clone https://github.com/harbour/core.git harbour

cd harbour

gomingw.bat
Code: Select all  Expand view  RUN
set path=c:\MinGW\bin
win-make


Here you have it already built:
https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/harbour_MinGW_gcc_32bits_20170915.zip
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42117
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Compile Error using FW17.07, Harbour MinGW

Postby Antonio Linares » Fri Sep 15, 2017 9:15 pm

I have already emailed you the FWH libs for MinGW gcc 6.3.0
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42117
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Compile Error using FW17.07, Harbour MinGW

Postby eliseudias » Sun May 02, 2021 10:18 pm

I was getting the following error:

Code: Select all  Expand view  RUN
c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.text+0xc7): undefined reference to `operator new(unsigned int)'
c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.text+0x1b9): undefined reference to `operator delete[](void*)'

c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.text+0xb22): undefined reference to `__cxa_throw_bad_array_new_length'
c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.text+0xb2a): undefined reference to `operator new[](unsigned int)'

c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.text+0xe13): undefined reference to `operator new(unsigned int)'
c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.text+0xe9e): undefined reference to `operator delete(void*, unsigned int)'

c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.text$_ZN13TActiveXEvent7ReleaseEv+0x3b): undefined reference to `operator delete(void*, unsigned int)'
c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.text$_ZN8TActiveX7ReleaseEv+0x49): undefined reference to `operator delete(void*, unsigned int)'

c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.rdata$_ZTV15IOleControlSite[__ZTV15IOleControlSite]+0x8): undefined reference to `__cxa_pure_virtual'
c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.rdata$_ZTV15IOleControlSite[__ZTV15IOleControlSite]+0xc): undefined reference to `__cxa_pure_virtual'

c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.rdata$_ZTV15IOleControlSite[__ZTV15IOleControlSite]+0x10): undefined reference to `__cxa_pure_virtual'
c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.rdata$_ZTV15IOleControlSite[__ZTV15IOleControlSite]+0x14): undefined reference to `__cxa_pure_virtual'

c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.rdata$_ZTV15IOleControlSite[__ZTV15IOleControlSite]+0x18): undefined reference to `__cxa_pure_virtual'
c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.rdata$_ZTV15IOleControlSite[__ZTV15IOleControlSite]+0x1c): more undefined references to `__cxa_pure_virtual'
follow
c:/fwh/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.eh_frame+0x4f): undefined reference to `__gxx_personality_v0'
c:/fwh/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame+0x11f): undefined reference to `__gxx_personality_v0'

c:/fwh/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame$_ZN7Gdiplus5ImageD2Ev+0x13): undefined reference to `__gxx_personality_v0'
c:/fwh/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame$_ZN7Gdiplus5ImageD1Ev+0x13): undefined reference to `__gxx_personality_v0'

c:/fwh/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame$_ZN7Gdiplus13CustomLineCapD2Ev+0x13): undefined reference to `__gxx_personality_v0'
c:/fwh/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame$_ZN7Gdiplus13CustomLineCapD1Ev+0x13): more undefined references to `__gxx_personality_v0'
follow
c:/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0x2f6f): undefined reference to `operator new(unsigned int)'
c:/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0x4ef6): undefined reference to `operator new(unsigned int)'

c:/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0x50b2): undefined reference to `operator delete(void*, unsigned int)'
c:/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0x56fb): undefined reference to `operator new(unsigned int)'

c:/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0x5881): undefined reference to `operator delete(void*, unsigned int)'
c:/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZN7Gdiplus15ImageAttributesD1Ev+0x13): undefined reference to `__gxx_personality_v0'

c:/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZN7Gdiplus19LinearGradientBrushC1ERKNS_4RectERKNS_5ColorES6_NS_18LinearGradientModeE+0x13): undefined reference to `__gxx_personality_v0'
c:/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZN7Gdiplus19LinearGradientBrushC1ERKNS_4RectERKNS_5ColorES6_fi+0x13): undefined reference to `__gxx_personality_v0'

c:/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZN7Gdiplus8MetafileC1EP7IStream+0x13): undefined reference to `__gxx_personality_v0'
c:/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZN7Gdiplus17PathGradientBrushC1EPKNS_12GraphicsPathE+0x13): undefined reference to `__gxx_personality_v0'

c:/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZN7Gdiplus8Graphics9FromImageEPNS_5ImageE+0x13): more undefined references to `__gxx_personality_v0' follow
collect2.exe: error: ld returned 1 exit status
hbmk2[sampleDashBoard]: Error: Running linker. 1
c:\hb32\comp\mingw\bin\gcc.exe OBJ/sampledashboard.o OBJ/_hbmkaut_sampledashboard.o    -mconsole -Wl,--start-group -lhbct -lhbhpdf -lgtstd -lhbmainstd -lhbmisc -lhbmzip -lhbnf -lhbodbc -lodbc32 -lhbsqlit3 -lhbtip -lhbwin -lxhb -lhbwin -lhbtip -lhbct -lhbgt -lhbmisc -lhbnf -lhbziparc -lhbcomm -lhbmzip -lhbformat -lgtwvt -lgtwvg -lrddbm -lxhb -lminizip -loleaut32 -limm32 -lversion -lgdi32 -lgdiplus -loledlg -lkernel32 -luser32 -lole32 -lfivehg -lfivehgc -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainstd -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib   -Wl,--end-group -osampledashboard.exe  -Lc:/hb32/lib/win/mingw -Lc:/fwh/lib

-llibstdc++


Fix the problem adding the library libstdc++.
-llibstdc++
Contact Info:
Email: eliseudias@yahoo.com
WhatsApp: 55-19-998298699
User avatar
eliseudias
 
Posts: 1
Joined: Wed Sep 30, 2015 11:21 pm
Location: MONTE MOR - SP


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 101 guests