Error Building TestGif.prg

Post Reply
User avatar
arpipeline
Posts: 36
Joined: Thu Oct 26, 2006 5:23 pm
Location: United States

Error Building TestGif.prg

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

Re: Error Building TestGif.prg

Post by Antonio Linares »

Andy,

Please link this OBJ file:
www.fivetechsoft.com/files/anigif.obj
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
arpipeline
Posts: 36
Joined: Thu Oct 26, 2006 5:23 pm
Location: United States

Re: Error Building TestGif.prg

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

Re: Error Building TestGif.prg

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

Antonio Linares
www.fivetechsoft.com
User avatar
arpipeline
Posts: 36
Joined: Thu Oct 26, 2006 5:23 pm
Location: United States

Re: Error Building TestGif.prg

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

Re: Error Building TestGif.prg

Post by Antonio Linares »

Andy,

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

Antonio Linares
www.fivetechsoft.com
User avatar
arpipeline
Posts: 36
Joined: Thu Oct 26, 2006 5:23 pm
Location: United States

Re: Error Building TestGif.prg

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

Re: Error Building TestGif.prg

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

Antonio Linares
www.fivetechsoft.com
Post Reply