Undefined PathGradientBrush

Post Reply
User avatar
concentra
Posts: 107
Joined: Mon Nov 14, 2005 10:15 am
Location: Brazil

Undefined PathGradientBrush

Post 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.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Undefined PathGradientBrush

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
concentra
Posts: 107
Joined: Mon Nov 14, 2005 10:15 am
Location: Brazil

Re: Undefined PathGradientBrush

Post by concentra »

Antonio,

Was stdc++ ...

Thanks.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Undefined PathGradientBrush

Post by Antonio Linares »

very good :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply