Page 1 of 1

Undefined PathGradientBrush

Posted: Wed Dec 09, 2015 6:38 pm
by concentra
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: Select all

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: Select all

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.

Re: Undefined PathGradientBrush

Posted: Wed Dec 09, 2015 6:59 pm
by Antonio Linares
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

Re: Undefined PathGradientBrush

Posted: Wed Dec 09, 2015 7:28 pm
by concentra
Antonio,

Was stdc++ ...

Thanks.

Re: Undefined PathGradientBrush

Posted: Wed Dec 09, 2015 8:21 pm
by Antonio Linares
very good :-)