FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Error Building TestGif.prg
Posts: 36
Joined: Thu Oct 26, 2006 05:23 PM
Error Building TestGif.prg
Posted: Sat Aug 29, 2009 10:16 PM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Error Building TestGif.prg
Posted: Sun Aug 30, 2009 04:15 AM

Andy,

Please link this OBJ file:

www.fivetechsoft.com/files/anigif.obj

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 36
Joined: Thu Oct 26, 2006 05:23 PM
Re: Error Building TestGif.prg
Posted: Tue Sep 01, 2009 06:44 PM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Error Building TestGif.prg
Posted: Tue Sep 01, 2009 10:12 PM
Andy,

Please add this code to your main PRG:
Code (fw): Select all Collapse
#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
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 36
Joined: Thu Oct 26, 2006 05:23 PM
Re: Error Building TestGif.prg
Posted: Wed Sep 02, 2009 12:26 AM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Error Building TestGif.prg
Posted: Wed Sep 02, 2009 12:39 AM

Andy,

Please check that you have the GIF file used from FWH\samples\TestGif.prg

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 36
Joined: Thu Oct 26, 2006 05:23 PM
Re: Error Building TestGif.prg
Posted: Wed Sep 02, 2009 05:58 PM
Antonio,

Yes, the file is there. Here is my code with the file check:

Code (fw): Select all Collapse
// 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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Error Building TestGif.prg
Posted: Wed Sep 02, 2009 10:20 PM

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 :-(

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion