Page 1 of 1
Error Building TestGif.prg
Posted: Sat Aug 29, 2009 10:16 pm
by arpipeline
I am getting the following error building testgif.prg with FW9.05 and xHB (4.5 Apr 6 2009 ):
xLINK: error: Unresolved external symbol '_HB_FUN_CREATEGIF referenced from Fivehmx.lib(TGIF.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_GIFHWND referenced from Fivehmx.lib(TGIF.obj)'
Any ideas?
TIA
Re: Error Building TestGif.prg
Posted: Sun Aug 30, 2009 4:15 am
by Antonio Linares
Re: Error Building TestGif.prg
Posted: Tue Sep 01, 2009 6:44 pm
by arpipeline
Antonio,
Sorry, I was mistaken. I am using FW 9.04.
I am now getting:
xLINK: error: Unresolved external symbol '__chkstk referenced from (anigif.obj)'.
xLINK: error: Unresolved external symbol '_hb_storvnl referenced from (anigif.obj)'.
Andy
Re: Error Building TestGif.prg
Posted: Tue Sep 01, 2009 10:12 pm
by Antonio Linares
Andy,
Please add this code to your main PRG:
Code: Select all
#pragma BEGINDUMP
void _chkstk( void )
{
}
void hb_stornl( long, int, int );
void hb_storvnl( long l, int i1, int i2 )
{
hb_stornl( l, i1, i2 );
}
#pragma ENDDUMP
Re: Error Building TestGif.prg
Posted: Wed Sep 02, 2009 12:26 am
by arpipeline
Antonio,
This is what I get now:
testgif.prg(24): error: Redeclaration of 'hb_stornl' previously declared at C:\xHB\include\hbapi.h(539): found 'void __cdecl function(long int, int, int)' expected 'void __cdecl function(long int, int, ...)'.
I tried commenting out "void hb_stornl( long, int, int );", and it compiles and links, but then I get a 9011 error with the message:
"hb_xfree called with a NULL pointer"
Thanks
Andy
Re: Error Building TestGif.prg
Posted: Wed Sep 02, 2009 12:39 am
by Antonio Linares
Andy,
Please check that you have the GIF file used from FWH\samples\TestGif.prg
Re: Error Building TestGif.prg
Posted: Wed Sep 02, 2009 5:58 pm
by arpipeline
Antonio,
Yes, the file is there. Here is my code with the file check:
Code: Select all
// Animated GIFs support for FWH
#include "FiveWin.ch"
function Main()
local oWnd
DEFINE WINDOW oWnd TITLE "Animated GIFs"
MsgInfo( FILE( "..\gifs\halo.gif" ) )
TGif():New( oWnd, "..\gifs\halo.gif", 10, 10 )
ACTIVATE WINDOW oWnd
return nil
#pragma BEGINDUMP
void _chkstk( void )
{
}
// void hb_stornl( long, int, int );
void hb_storvnl( long l, int i1, int i2 )
{
hb_stornl( l, i1, i2 );
}
#pragma ENDDUMP
Re: Error Building TestGif.prg
Posted: Wed Sep 02, 2009 10:20 pm
by Antonio Linares
Andy,
We have just tested it with FWH 9.08 and Microsoft VC2008 and it is working fine.
Here you have the EXE to test it:
http://www.mediafire.com/?sharekey=beb9 ... eaa7bc68bc (rename as .zip)
As FWH GIF support uses C++ and PellesC used from xHB does not support C++, it may not be compatible