FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Undefined PathGradientBrush
Posts: 124
Joined: Mon Nov 14, 2005 10:15 AM
Undefined PathGradientBrush
Posted: Wed Dec 09, 2015 06:38 PM
Hi.

Upgrading from an old version of FiveWin to latest one ( 2015/10 ).

Using MinGW Harbour
Harbour version 3.2.0dev (r1508011114)
MinGW-W64 version 4.9.2

After some minor issues, I got stuck with a linking problems.

After getting this errors

Code (fw): Select all Collapse
C:/hb32/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0xb01): undefined reference to `operator new(unsigned int)'
C:/hb32/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0xc06): undefined reference to `GdiplusStartup@12'
C:/hb32/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0xc26): undefined reference to `GdiplusShutdown@4'
C:/hb32/comp/mingw/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: C:/hb32/fwh/lib/fivehgc.lib(GDIPLUS.o): bad reloc address 0xd in section `.text$_ZN7Gdiplus6PointFC1Ev[__ZN7Gdiplus6PointFC1Ev]'


I added -lgdiplus to the link script and the error changed to

Code (fw): Select all Collapse
C:/hb32/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0xb01): undefined reference to `operator new(unsigned int)'
C:/hb32/fwh/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.rdata$_ZTIN7Gdiplus17PathGradientBrushE[__ZTIN7Gdiplus17PathGradientBrushE]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
C:/hb32/comp/mingw/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: C:/hb32/fwh/lib/fivehgc.lib(GDIPLUS.o): bad reloc address 0x0 in section `.rdata$_ZTIN7Gdiplus17PathGradientBrushE[__ZTIN7Gdiplus17PathGradientBrushE]'


I am stuck...

Does anyone knows what else needs to be done / linked ?

Regards.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Undefined PathGradientBrush
Posted: Wed Dec 09, 2015 06:59 PM

Mauricio,

I just tested FWH\samples

buildg.bat gdiplus

buildg.bat gdiplus2

buildg.bat gdiplus3

and they properly built and executed.

Could you check that you are using the same libs as the used from buildg.bat ?

Could you please provide an example to reproduce the error ? thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 124
Joined: Mon Nov 14, 2005 10:15 AM
Re: Undefined PathGradientBrush
Posted: Wed Dec 09, 2015 07:28 PM
Antonio,

Was stdc++ ...

Thanks.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Undefined PathGradientBrush
Posted: Wed Dec 09, 2015 08:21 PM

very good :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion