Error Building TestGif.prg

Error Building TestGif.prg

Postby arpipeline » 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
User avatar
arpipeline
 
Posts: 36
Joined: Thu Oct 26, 2006 5:23 pm
Location: United States

Re: Error Building TestGif.prg

Postby Antonio Linares » Sun Aug 30, 2009 4:15 am

Andy,

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

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

Re: Error Building TestGif.prg

Postby arpipeline » Tue Sep 01, 2009 6: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
User avatar
arpipeline
 
Posts: 36
Joined: Thu Oct 26, 2006 5:23 pm
Location: United States

Re: Error Building TestGif.prg

Postby Antonio Linares » Tue Sep 01, 2009 10:12 pm

Andy,

Please add this code to your main PRG:
Code: Select all  Expand view

#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
Antonio Linares
Site Admin
 
Posts: 41565
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Error Building TestGif.prg

Postby arpipeline » 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
User avatar
arpipeline
 
Posts: 36
Joined: Thu Oct 26, 2006 5:23 pm
Location: United States

Re: Error Building TestGif.prg

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

Re: Error Building TestGif.prg

Postby arpipeline » Wed Sep 02, 2009 5:58 pm

Antonio,

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

Code: Select all  Expand view
// 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
arpipeline
 
Posts: 36
Joined: Thu Oct 26, 2006 5:23 pm
Location: United States

Re: Error Building TestGif.prg

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 164 guests