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
Error Building TestGif.prg
- arpipeline
- Posts: 36
- Joined: Thu Oct 26, 2006 5:23 pm
- Location: United States
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- arpipeline
- Posts: 36
- Joined: Thu Oct 26, 2006 5:23 pm
- Location: United States
Re: Error Building TestGif.prg
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
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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Error Building TestGif.prg
Andy,
Please add this code to your main PRG:
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
- arpipeline
- Posts: 36
- Joined: Thu Oct 26, 2006 5:23 pm
- Location: United States
Re: Error Building TestGif.prg
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
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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Error Building TestGif.prg
Andy,
Please check that you have the GIF file used from FWH\samples\TestGif.prg
Please check that you have the GIF file used from FWH\samples\TestGif.prg
- arpipeline
- Posts: 36
- Joined: Thu Oct 26, 2006 5:23 pm
- Location: United States
Re: Error Building TestGif.prg
Antonio,
Yes, the file is there. Here is my code with the file check:
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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Error Building TestGif.prg
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
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