Undefined PathGradientBrush

Undefined PathGradientBrush

Postby concentra » Wed Dec 09, 2015 6: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: Select all  Expand view
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  Expand view
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
concentra
 
Posts: 124
Joined: Mon Nov 14, 2005 10:15 am
Location: Brazil

Re: Undefined PathGradientBrush

Postby Antonio Linares » Wed Dec 09, 2015 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42076
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Undefined PathGradientBrush

Postby concentra » Wed Dec 09, 2015 7:28 pm

Antonio,

Was stdc++ ...

Thanks.
User avatar
concentra
 
Posts: 124
Joined: Mon Nov 14, 2005 10:15 am
Location: Brazil

Re: Undefined PathGradientBrush

Postby Antonio Linares » Wed Dec 09, 2015 8:21 pm

very good :-)
regards, saludos

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 81 guests